Reincarnation, Unit Casts War Stomp When He Revives

WolfieeifloW

WEHZ Helper
Reaction score
372
Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit Begins reviving
    • Conditions
      • (Reviving Hero) Equal to (==) Tauren Chieftain 0017 <gen>
    • Actions
      • Wait 3.00 seconds
      • Set tempPoint = (Position of (Casting unit))
      • Unit - Create 1 DummyCaster for (Owner of (Casting unit)) at tempPoint facing Default building facing (270.0) degrees
      • Custom script: call RemoveLocation(udg_tempPoint)
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)

Why isn't this working :( ?
 
Change 'Casting unit' with 'Triggering unit'. I'm still not sure whether it would work though. Haven't played around with that particular event before, yet...
 
this may be nothing but wat about...
E
A unit starts the effect of an ability
C
Ability being cast is Reincarnation
Caster is Tauren Chieftan
A
Etc Etc..

Unless u want it to be with an item
 
Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) Frostincarnation
    • Actions
      • Wait 3.00 seconds
      • Set tempPoint = (Position of (Triggering unit))
      • Unit - Create 1 DummyCaster for (Owner of (Triggering unit)) at tempPoint facing Default building facing (270.0) degrees
      • Unit - Add Frost Stomp to (Last created unit)
      • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
      • Unit - Remove Frost Stomp from (Last created unit)
      • Custom script: call RemoveLocation(udg_tempPoint)
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)

Nope :eek: .
 
So, what you want is, when the unit that has the ability dies, will revive at the target point where he died and then a dummy cast war stomp? I could try and make it but if it is like that, the killer will get gold exp and stuff for killing him
 
Okay.
You're Tauren Chieftain.
You die with the skill Reincarnation [in this case, Frostincarnation] .
When you revive, a dummy casts War Stomp [in this case, Frost Stomp] .

Thought this would be simple, but I couldn't do it :rolleyes: .
 
> Unit - Remove Frost Stomp from (Last created unit)

Not a good idea.


> based off Reincarnation

You sure that actually triggers your event?
Add some "game - display" as first action to see.
 
I can revive the hero for you but, gold will be taken and exp will be given but i will revive him and the default reincarnation wouldn't work like acehart said. Or i could us a timer every x second but it will be really complicated for a simple spell.

If the unit is preplaced It will be easy to make it .
 
Done

Made in Vjass

JASS:
scope killer initializer Init

globals
private constant integer ID = 'A010' // ID of ability
private constant integer Unit = 'h001' // dummy id
private constant integer spell = 'b000' // stomp id
endglobals


private function Conditions takes nothing returns boolean
      return IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO) == true and GetUnitAbilityLevel(GetTriggerUnit(), ID) > 0
endfunction // this stuff check if the guy is a hero and the ability level is not 0


private function Actions takes nothing returns nothing
local unit dummy = CreateUnit(GetOwningPlayer(GetTriggerUnit()),Unit,GetUnitX(GetTriggerUnit()),GetUnitY(GetTriggerUnit()),0)
call KillUnit(GetTriggerUnit())
call PolledWait(3.00)
call UnitAddAbility(dummy,spell)
call IssueImmediateOrder(dummy,"stomp")
call UnitApplyTimedLife(dummy,'BTLF',1)
call ReviveHeroLoc(GetTriggerUnit(),GetUnitLoc(GetTriggerUnit()), false )
set dummy = null
endfunction

//===========================================================================
private function Init takes nothing returns nothing
    local trigger t = CreateTrigger(  )
    call TriggerRegisterUnitLifeEvent( t, gg_unit_Otch_0000, LESS_THAN_OR_EQUAL,150.00 )
    call TriggerAddCondition(t,Condition(function Conditions) )
    call TriggerAddAction(t, function Actions )
endfunction

endscope


Here is map for you test out and see if it is correct

I like +REP and credits ;)

EDIT: gg_unit is the preplaced unit 150 is the amount of hp when u want the hero to "disappear" and come back again, this will make sure that the killer won't get exp and gold but if there is a nuke, that does 10000 damage instantly, I'm not sure whether it will trigger or not
 
Except it won't work. Since you chose a preplaced unit.

And the event triggers when his hp gets low.

Please test your work first.
 
no, I told him that it will be preplaced already or I could use timers, read my edit, it works when the guy's hp comes below 150 hp, at least in my map..., did you download the map?
 
I need it to work when he reaches 0 hp though :eek: .
Like a normal reincarnation.

Bedtime for me though.
 
I know what it's meant to do. That isn't exactly the same as casting when revived, is it?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      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