System Heal

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
Unit 1 Heals Unit 3 for 100
Unit 2 Heals Unit 3 for 200 (at the the same time)

It is instant, it will not return wrong value.

[ljass]set StackLevel = StackLevel + 1[/ljass]
This solved the problem that you use HealUnit in heal event callbacks.
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
No, it will return 100(First turn of callbacks) and 200(Second turn of callbacks) instead.
 

hgkjfhfdsj

Active Member
Reaction score
55
ok.. so
how would you go amount retrieving the total heal amount?
ie GetAmount() gives 300 on first turn (since assuming the two heals occurs at the same time)
how to add the 2nd call (200) to the 1st call (100) amount to the same stacklevel?
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
(since assuming the two heals occurs at the same time)
No chance to occur.
 

hgkjfhfdsj

Active Member
Reaction score
55
No chance to occur.
ok..one more question:
[DEL]what do you mean by recursively defined?[/DEL] but more importantly, what/how does the stacklevel thingy solve it??
ty (again):)
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
but more importantly, what/how does the stacklevel thingy solve it??
I meant it solved recursion.
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
It is basically similar to Damage event. :)
The demo map should give some hints.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top