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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
zortania
Newbie


Joined: 15 Jul 2003
Posts: 6
Location: USA

PostPosted: Tue Mar 23, 2004 7:53 pm   

If then Else Trigger
 
Okay, this is what I'm trying to do.

Trigger:
You have finished crafting a sheaf of paper.

Action:
#ad paper 5
#IF (paper=50)

And this is where I am stuck. I want to be able to do an if then else type of thing. If there are 50 paper made, I want to trigger after that to make an item. If there is not 50 paper, I want to be able to keep crafting the paper.

Help?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Mar 23, 2004 8:05 pm   
 
Trigger:
You have finished crafting a sheaf of paper.

Action:
#ADD Paper 5
#IF (@paper=50) {#SAY Do this} {#SAY Not 50 do this instead;paper=0}

Edit: Fixed a flubbergust
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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