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


Joined: 11 Sep 2004
Posts: 7

PostPosted: Tue Oct 19, 2004 9:34 am   

#IF and #ALARM ?
 
Is it possible to put a temp alarm trigger within an if statement? lets say I only want to cast a certain spell if my mana is above a certain point, with that criteria I want a temp alarm in similarity to #ALARM "spell" {+1} {cast 'spell'} ? Also is it possible to create a temp alarm that will fire immedietly with no time criteria ?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Oct 19, 2004 10:29 am   
 
First + in an alarm donates it as a temporary alarm so your example is already a temporary alarm :P

#alias myspell {#IF (@mana>=30) {#alarm "spell" {+1} {cast 'spell'}} {#say No Mana!}}

Also is it possible to create a temp alarm that will fire immedietly with no time criteria ?
Why make an alarm why not just do it :P

#alias myspell {#IF (@mana>=30) {cast 'spell'}}

without know more of what your trying to do I can't help ya that much
_________________
Zmud Support Library
Zmud Knowledge Base
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