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
wheelman
Novice


Joined: 30 Jan 2006
Posts: 41

PostPosted: Mon Feb 04, 2008 1:00 am   

Question about #IF statement
 
Is it possible to do something like.
Code:
(%w) tells you '%2'.  #IF (%2 == zoom OR summon) {c 'summon' %1}

Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Feb 04, 2008 1:26 am   
 
Take your pick of these 2.
#TRIGGER {(%w) tells you '(%w)'} {#IF (%ismember(%2,"zoom|summon")) {c 'summon' %1}}
#TRIGGER {(%w) tells you '(%w)'} {#IF ((%2 = zoom) OR (%2 = summon)) {c 'summon' %1}}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
wheelman
Novice


Joined: 30 Jan 2006
Posts: 41

PostPosted: Mon Feb 04, 2008 1:40 am   
 
Works good, Thanks
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