due to spam and speed of mud when in large groups, I wanted to make an alias that will just tell me which spells are currently down (not active) as just hitting the score command instead gives way too much additional info and I miss half the info I need, SO.. this is what I have done.
for every spell i want to check (9 of them in this case) I have triggers for the spell up / spell down messages to set variables for each spell to show up or down. so far so good.
now what i want is an alias to call a script that looks at all these 9 variables, and then world notes me ONLY the ones that are down.. thats where I'm having problems as I don't know the correct syntax for if / end if statements. If the spell (variable) is up, i dont want to know about it.
Here is the subroutine I have at the moment. it's not throwing any errors, but it's not telling me anything either on world.note...
ACK nevermind I figured it out... just messed up something really minor on world.notes. I'll post it here anyway, someone might find it useful..
sub spellsdown (thename, theoutput, thewildcards)
dim stone
dim iron
dim strength
dim grace
dim mobility
dim rejuvenation
dim corona
dim stamina
dim aegis
stone = World.GetVariable ("spstone")
iron = World.GetVariable ("spiron")
strength = World.GetVariable ("spstrength")
grace = World.GetVariable ("spgrace")
mobility = World.GetVariable ("spmobility")
rejuvenation = World.GetVariable ("sprejuvenation")
corona = World.GetVariable ("spcorona")
stamina = World.GetVariable ("spstamina")
aegis = World.GetVariable ("spaegis")
World.ColourNote "lightblue", "", "SPELLS DOWN :"
if stone = ("down") then
World.Note "stone skin"
end if
if iron = ("down") then
World.Note "iron skin"
end if
if strength = ("down") then
World.Note "strength"
end if
if grace = ("down") then
World.Note "grace"
end if
if mobility = ("down") then
World.Note "mobility"
end if
if rejuvenation = ("down") then
World.Note "rejuvenation"
end if
if corona = ("down") then
World.Note "corona"
end if
if stamina = ("down") then
World.Note "stamina"
end if
if aegis = ("down") then
World.Note "aegis"
end if
end sub
for every spell i want to check (9 of them in this case) I have triggers for the spell up / spell down messages to set variables for each spell to show up or down. so far so good.
now what i want is an alias to call a script that looks at all these 9 variables, and then world notes me ONLY the ones that are down.. thats where I'm having problems as I don't know the correct syntax for if / end if statements. If the spell (variable) is up, i dont want to know about it.
Here is the subroutine I have at the moment. it's not throwing any errors, but it's not telling me anything either on world.note...
ACK nevermind I figured it out... just messed up something really minor on world.notes. I'll post it here anyway, someone might find it useful..
sub spellsdown (thename, theoutput, thewildcards)
dim stone
dim iron
dim strength
dim grace
dim mobility
dim rejuvenation
dim corona
dim stamina
dim aegis
stone = World.GetVariable ("spstone")
iron = World.GetVariable ("spiron")
strength = World.GetVariable ("spstrength")
grace = World.GetVariable ("spgrace")
mobility = World.GetVariable ("spmobility")
rejuvenation = World.GetVariable ("sprejuvenation")
corona = World.GetVariable ("spcorona")
stamina = World.GetVariable ("spstamina")
aegis = World.GetVariable ("spaegis")
World.ColourNote "lightblue", "", "SPELLS DOWN :"
if stone = ("down") then
World.Note "stone skin"
end if
if iron = ("down") then
World.Note "iron skin"
end if
if strength = ("down") then
World.Note "strength"
end if
if grace = ("down") then
World.Note "grace"
end if
if mobility = ("down") then
World.Note "mobility"
end if
if rejuvenation = ("down") then
World.Note "rejuvenation"
end if
if corona = ("down") then
World.Note "corona"
end if
if stamina = ("down") then
World.Note "stamina"
end if
if aegis = ("down") then
World.Note "aegis"
end if
end sub