None of those are variables. They are defines and they should work as is.Wassup wrote:Couple other things I see:
When you use variables in comparisons you need to make sure the variable name is preceded by a $.
Some examples:
should beCode: Select all
/if n $char(mana,cur)<$int($spell("$p1",mana)+MANABUFFER) /goto :Exit
Code: Select all
/if n $char(mana,cur)<$int($spell("$p1",mana)+$MANABUFFER) /goto :Exit
should beCode: Select all
/if t$p0==MANATIMER { /gsay $char(mana,pct)m /varset MANATIMER 3m }
Code: Select all
/if t$p0==$MANATIMER { /gsay $char(mana,pct)m /varset MANATIMER 3m }
should beCode: Select all
Sub Event_HitsYou /if n $char(hp,pct)<10 /call GetOutOfDodge /if n $NEXTOUCHTIMER>0 /return /varset NEXTOUCHTIMER 12s /tell MASTERNAME Ouch, I'm getting whacked by $target(name,clean)! /target clear /return
Code: Select all
Sub Event_HitsYou /if n $char(hp,pct)<10 /call GetOutOfDodge /if n $NEXTOUCHTIMER>0 /return /varset NEXTOUCHTIMER 12s /tell $MASTERNAME Ouch, I'm getting whacked by $target(name,clean)! /target clear /return
A define replaces every occurance of something with something else.
Example:
#define MANABUFFER 30
Replaces every occurance of MANABUFFER with 30
Code: Select all
/if n $char(mana,cur)<$int($spell("$p1",mana)+$MANABUFFER) /goto :Exit
Code: Select all
/if n $char(mana,cur)<$int($spell("$p1",mana)+30) /goto :Exit
Example:
#define MANABUFFER v80
/varset MANABUFFER 30
/echo $MANABUFFER
You would need the $ this case since the text "MANABUFFER" is a define for a variable.
Thanks
GrimJack

