Spell Help

Farplane

New Member
Reaction score
8
I was thinking of a simple trigger spell that I ws going to use on my map, it's called "Inverse", it switchs the HP of the caster and the Target for X amount of seconds, then switches them back.
I already planned out how I will craft the trigger, the problem is, when I tryed to set the variable for a units hp (i.e.
-Actions
Set O_HP = Hp of O
Set T_HP = Hp of T)
I couldn't find an integer value for a unit's hp!
Anyone know of one that I could use in this situation?





EDIT!
Oh... nevermind I got it :D
 

Farplane

New Member
Reaction score
8
Hmmm... ok now that that's done I've been thinking, "Could this also damage the caster greatly?"
So I'm gonna need your guys' opinions.
I have 3 options.
(THESE ARE ALL ONCE THE WAIT TIME IS FINISHED!)
1. The caster and target BOTH switch Hp's again
2. The target gets the casters hp, caster keeps his the way it is currently.
or
3. The spell can be completely new and the caster and target switch hp's only in the begginging (they don't switch back, or in other words, the hp's just flip-flop. Spell done.)
 

ianu74

New Member
Reaction score
8
I think Number 1 is good. Just set a percent chance of that happening again.
And... don't double-post... Just edit your previous one.:)
 

waaaks!

Zinctified
Reaction score
256
number 3 is not bad........

and when you set a life of a unit, it is not an integer, it is a real
so create a variable that uses real
 

Farplane

New Member
Reaction score
8
Ok, and to prevent a memory leak, what custom script would I use to remove value of o_hp and t_hp? (I know nothing about JASS...)
 

Farplane

New Member
Reaction score
8
As far as I know, Integers and Reals don't leak.

Alright, thanks :)
I'm gonna check if it does anyway though, I'll edit this with the results :D
Nope, they don't, but I think I've got once again another problem. I'll see if I can fix it, if I can't I'll edit this again.

EDIT!!!!!
Ok, I figured out the problem and a solution to it, but I must ask a question (yes, it is to solve the problem).
Can someone tell me a spell simular to Storm Bolt that I could use the same triggers on? Would Fire Ball work perhaps?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top