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
Li
Newbie


Joined: 23 May 2010
Posts: 1

PostPosted: Sun May 23, 2010 6:44 am   

help on trigger if
 
my trigger is very simple but i cant find this in help files...

pattern:
ABC gives you 100 gold.

(the gold value range is from 1 to 300)

if the gold value is > 100, then put the amount i got into a chest e.g {put 152 gold in chest}
if the gold value is <= 100, the drop the amount e.g {drop 32 gold}

thanks a lot
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Sun May 23, 2010 9:21 am   
 
#TR {gives you (%d) gold.} {#IF (%1>100) {put %1 gold in chest} {drop %1 gold}}
_________________
Discord: Shalimarwildcat
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