Experience after Death!

FootysMaXeD

New Member
Reaction score
0
So i'm creating an ability for a hero of mine, the Hydra!

So it's ultimate ability is to divide upon death into miniature hydras for 30 seconds. The hero gains experience in the area in which he died for those 30 seconds. I use an automated revival system in my map, and I am a little stumped to how to make this ability.

Just some ideas I had:
1. Create a trigger that somehow triggered by the Hydra's death, and spawns 3 small hydras that vary based on the level of the ability. The "dummy" ability is Reincarnation with a 30s reincarnation delay, then kill the hero. I'm pretty sure you get exp while "dead" in reincarnation.
2. Something with Storm,earth,fire? If hero is about to die, make hero invulnerable, use storm, earth, fire? But not sure how he gets xp this way.

Extra Request: It would be nice to have the duration variable, so that higher levels means longer periods of xp and less death down-time.

Ty for your help!
 

FootysMaXeD

New Member
Reaction score
0
Oops, crap. I guess i'll delete it and repost.

Edit: Can someone delete this? I made another post in the correct section.
 

Hatebreeder

So many apples
Reaction score
381
Well one way would be:

JASS:
globals
private boolean ISTRUE = true
private integer UNITPOOL = 0
endglobals

function Cheack takes nothing returns boolean
return GetUnitState(GetEventDamageUnit(),UNIT_STATE_LIFE) <= 150 and ISTRUE
endfunction

function DoStuff takes nothing returns nothing
local unit Damaged = GetEventDamagedUnit()
local unit Dummy
local integer Count = 0

call ShowUnit(Damaged,false)
loop
exitwhen Count >= 3
set Count = Count + 1
set Dummy = CreateUnit(....)
endloop

set ISTRUE = false
set UNITPOOL = 3

//Run a timer that sets the boolean ISTRUE to true when it expires
//Register the dummys in "unit death" event and subtract from a count. When it is 0, just make Damaged visible again. (UNITPOOL = UNITPOOL -1

endfunction


this will not make it work. However, this is just to give you an idea of how it works =)
 
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