TheAdder wrote:Can you please tell me how to make this work, as I follow the instructions in the documentation pdf and no gui appears in game.
The last line of the installation in the documentation is unreadable english, so I suspect there's something I can't understand. It says something about party and onDrawGui but gives no indication of what this means or how to do it. I would need detailed instructions about which file to open, what to edit, etc, not just a single line saying "do a thing" :/
I suspect that the onDrawGui hook is set up anyway by the script itself as there is an addConnector line in the source code for the money lua script.
I've put the money directory into mod_assets, created a script entity in my game and linked it to the external script as instructed, but nothing appears in game. No crash, though!
Help!
Hi,
so sorry for my unreadable english.
Party hooks are events for reaction on special game situations eg. onDie, onMove, .... and onDrawGui for its special scripting.
Take file ini.lua from mod_assets/script and put to end of this file this code:
Code: Select all
defineObject{
name = "party",
baseObject = "party",
components =
{
{
class = "Party",
onDrawGui = function(party,g)
end
}
}
}
Check for your script entity name is Money, and check if this script entity is on first floor.
In dungeon editor are visible coins only if you have view in fullscreen mode - key F
Coins are visible only if you have some ballance ( starting ballance is 0 )
For testing you may write setMoney(155,"copper") to the end of file Money.lua
Its all what I found as problems in new instalation.