|
Gotanda Newbie
Joined: 11 Sep 2004 Posts: 7
|
Posted: 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 ?
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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 |
|
|
|
|
|