|
Fergal1982 Wanderer
Joined: 08 Aug 2005 Posts: 70
|
Posted: Sat Mar 24, 2007 1:25 pm
Nested #If issue |
I'm having an issue with the following trigger:
Code: |
Text: ^You succeed in freeing a clump of (%w) ore from the surrounding rock.
#alarm +5 {
#IF ("%1" = "gold") {get ingot} {#IF ("%1" = "diamonds") {get diamond} {get %1}}
mine
#add ore_mined 1
}
|
This worked fine in ZMud, but initially, was throwing an error where the mud would tell me that i needed to state what it is i wanted to get. After fiddling with it a bit, it wont even compile. the compiler is listing a syntax error, but i cant see it. Can anyone help?
Thanks
Fergal |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Mar 24, 2007 3:21 pm |
In CMud you have to remove the the quotes from %nn references. Otherwise everthying looks fine. I would suggest running the Compatibility Report from one of the package editor menus, it will help in finding all such things.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|