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
astrotaz
Beginner


Joined: 09 Aug 2011
Posts: 12

PostPosted: Sat Sep 27, 2014 6:06 pm   

Wait until then do something
 
How do I code this -

I kill something and my spell points drop below a safe level, I want to wait until they regen to a certain point before executing a command

I capture the sp in to a var @sp, I need code to check until @sp=500 once it does -- execute a command.
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sat Sep 27, 2014 11:15 pm   
 
Make a trigger, set the pattern to @sp=500, and change the type at the bottom to expression.
Reply with quote
shalimar
GURU


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

PostPosted: Tue Oct 07, 2014 2:03 pm   
 
i would make it a part of your prompt trigger, if you have one

#IF (@delayedAction=heal) {#IF (@sp>499) {heal me}}
_________________
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