Spell: hp change

JohnyO

New Member
Reaction score
0
Hero use spell on target. And they change hp. F.e. Hero with 100/800 hp uses spell on unit with 500/900 hp. So hero get 500/800 hp and target get 100/900hp.
Mine doesn't work.

Action
Set HPChange = (Integer((Life of (Triggering unit))))
Unit - Set life of (Triggering unit) to (Life of (Target unit of ability being cast))
Unit - Set life of (Target unit of ability being cast) to (Real(RedHPChange))

What's wrong? And how it would be.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
"Set HPChange = (Integer((Life of (Triggering unit))))"
"Unit - Set life of (Target unit of ability being cast) to (Real(RedHPChange))"

See any difference ? :eek:

And also, why do you use an "Integer" variable, when you first need to convert from Real -> Integer to save the value, and then also convert from Integer -> Real since the action only uses reals ?

Just change the variable to a "Real" variable ;) ("Real" is a type of variable :p)
 

JohnyO

New Member
Reaction score
0
"Set HPChange = (Integer((Life of (Triggering unit))))"
"Unit - Set life of (Target unit of ability being cast) to (Real(RedHPChange))"

It's mistake just with copy. xD

With real variable thanks))
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top