I wasn't trying to pass an argument. I simply wanted it to print the text "test".
This all works fine when done inside a custom dungeon.
It just doesn't want to work when done dynamically through the console.
Search found 8 matches
- Tue Nov 04, 2014 6:13 am
- Forum: Mod Creation
- Topic: Script in Normal Game
- Replies: 6
- Views: 5429
- Tue Nov 04, 2014 5:41 am
- Forum: Mod Creation
- Topic: Checking contents of champions' inventory
- Replies: 6
- Views: 9402
Re: Checking contents of champions' inventory
Out of curiosity, how did you find out that item has the "go" property and "go" has the "name" property?
- Mon Nov 03, 2014 3:44 am
- Forum: Mod Creation
- Topic: Checking contents of champions' inventory
- Replies: 6
- Views: 9402
Re: Checking contents of champions' inventory
You must first check that getItem(#) returned a non-nil value (because the slot was empty).
- Mon Nov 03, 2014 3:35 am
- Forum: Mod Creation
- Topic: Checking contents of champions' inventory
- Replies: 6
- Views: 9402
Re: Checking contents of champions' inventory
You need to use getUiName()
Code: Select all
party.party:getChampion(1):getItem(13):getUiName()
- Mon Nov 03, 2014 3:29 am
- Forum: Mod Creation
- Topic: [Scripting] - Array of arrays not possible ?
- Replies: 8
- Views: 6007
Re: [Scripting] - Array of arrays not possible ?
Did you figure it out, or did you want something like:
Code: Select all
dest = {
["red"] = { 1, 25, 12, 0},
["fish"] = {1, 27, 12, 0}
}
- Sun Nov 02, 2014 9:22 pm
- Forum: Mod Creation
- Topic: Script in Normal Game
- Replies: 6
- Views: 5429
Re: Script in Normal Game
I am calling everything directly from the console within the game. No files. No DAT.
- Sun Nov 02, 2014 8:16 pm
- Forum: Mod Creation
- Topic: Script in Normal Game
- Replies: 6
- Views: 5429
Re: Script in Normal Game
On another note, the following code also does not run the script. delayedCall("zscript",1,"zanzer") If you specify an invalid function name, for example: delayedCall("zscript",1,"notzanzer") Then the system produces the warning: warning! invalid message: zscri...
- Sun Nov 02, 2014 4:50 pm
- Forum: Mod Creation
- Topic: Script in Normal Game
- Replies: 6
- Views: 5429
Script in Normal Game
I'm fooling around with scripts in the console while playing the normal game. I can't seem to get my script to execute. I'm creating my timer: spawn("timer",nil,nil,nil,nil,nil,"ztimer") ztimer.timer:setTimerInterval(1) ztimer.timer:setDisableSelf(false) ztimer.timer:setTriggerOn...