• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Hero Revival

Status
Not open for further replies.
Level 2
Joined
Apr 18, 2017
Messages
12
Hello once again, sorry for the disturbance.


But, is there any way to make a specific hero unable to be revive?



Thanks and sorry once again for the disturbance..
 
you can block revive in altars like this:
set your hero that wont be able to revive
  • Hero
    • Events
    • Conditions
    • Actions
      • Set HeroUnableToRevive = Demon Hunter 0035 <gen>
  • AltarRevive
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Custom script: set udg_tempInteger = GetIssuedOrderId()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • tempInteger Greater than or equal to 852027
          • tempInteger Less than or equal to 852030
          • (Target unit of issued order) Equal to HeroUnableToRevive
        • Then - Actions
          • Set Altar = (Ordered unit)
          • Countdown Timer - Start tempTimer as a One-shot timer that will expire in 0.00 seconds
        • Else - Actions
  • timerExp
    • Events
      • Time - tempTimer expires
    • Conditions
    • Actions
      • Custom script: call IssueImmediateOrderById(udg_Altar, 851976)
      • Set Altar = No unit
however revive in taverns is instant and cannot be blocked as far as I know
 
Level 2
Joined
Apr 18, 2017
Messages
12
you can block revive in altars like this:
set your hero that wont be able to revive
  • Hero
    • Events
    • Conditions
    • Actions
      • Set HeroUnableToRevive = Demon Hunter 0035 <gen>
  • AltarRevive
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Custom script: set udg_tempInteger = GetIssuedOrderId()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • tempInteger Greater than or equal to 852027
          • tempInteger Less than or equal to 852030
          • (Target unit of issued order) Equal to HeroUnableToRevive
        • Then - Actions
          • Set Altar = (Ordered unit)
          • Countdown Timer - Start tempTimer as a One-shot timer that will expire in 0.00 seconds
        • Else - Actions
  • timerExp
    • Events
      • Time - tempTimer expires
    • Conditions
    • Actions
      • Custom script: call IssueImmediateOrderById(udg_Altar, 851976)
      • Set Altar = No unit
however revive in taverns is instant and cannot be blocked as far as I know
Thank you + :D
 
Status
Not open for further replies.
Top