Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Fergal1982
Wanderer


Joined: 08 Aug 2005
Posts: 70

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net