Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MACRO Dec doesn't work?
#1
Hey there, trying out a simple script.
ManaTrigger:=Self.ManaMax()
Dec(!ManaTrigger!,1000)
Self.Say(!ManaTrigger!)

It says my max ammount of mana, like if DEC didn't affect it at all.
Reply
#2
Code:
Dec(!ManaTrigger!,1000)

should be

Code:
Dec(ManaTrigger,1000)
Reply
#3
Still doesn't work :/
Reply
#4
I'll check it, thanks
Reply
#5
I'm sure VarSub works so just use this... instead of Dec

Also u need SPACEBAR after ,

For example here is my macro that was throwing on ground certain amount of assassins stars when had less than given cap

[macro]1000 {wywal asski}
X1:=Self.X()
Y1:=Self.Y()
Z1:=Self.Z()
astars:=Misc.ItemCountEx(7386)
icap:=Self.Capacity()
wcap:=185
!icap!<=!wcap!
VarSub(wcap, !icap!)
VarDiv(wcap, 2)
VarAdd(wcap, 1)
Map.Thrown(7368, !wcap!, !X1!, !Y1!, !Z1!)
[/macro]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)