Posts: 7
Threads: 3
Joined: Jul 2016
Reputation:
0
07-13-2016, 12:34 AM
(This post was last modified: 07-13-2016, 12:34 AM by Karadoborgu.)
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.
Posts: 1,630
Threads: 103
Joined: Sep 2015
Reputation:
0
07-13-2016, 06:31 PM
(This post was last modified: 07-13-2016, 06:46 PM by Catar.)
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]