• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How to: Boat hero?

Status
Not open for further replies.
You can remove the inventory from the abilities. If you don't want it to revive then I think you'd have to use a trigger to remove it when it dies.

But, why would you have a hero ship if it's just another unit?.
 
  • Remove Hero
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • -------- It would look quite awkward when someone does killing blow on "Boat Hero" and instead of playing death it would instantly disappear. --------
      • -------- Thats why there is this wait. Modify it for your needs if it doesn't satisfy you. --------
      • Wait 4.00 seconds
      • Unit - Remove (Triggering unit) from the game
 
@Azeroc
That trigger would fail if another hero is killed during the wait.. and if there are other types of heros (non-boats) they would also be removed.. you could use a local variable (I think) or use 2 triggers and a indexing system or something like that (haven't been triggering at all in a long time)
 
@Azeroc
That trigger would fail if another hero is killed during the wait.. and if there are other types of heros (non-boats) they would also be removed.. you could use a local variable (I think) or use 2 triggers and a indexing system or something like that (haven't been triggering at all in a long time)

"Triggering unit" is a local variable in the GUI. After wait Locals still stay so this would work.
 
If that's so, it's something that has been added since I last was triggering and to be fair I said that I haven't been triggering at all in a long time. (Last time I did anything at all that has anything to do with wc3 except the last few days was when the patch with hashtables came out)
 
  • Wait 4.00 seconds
  • Unit - Remove (Triggering unit) from the game
Is nearly same as
JASS:
local unit u = GetTriggerUnit()
call TriggerSleepAction(4.00)
call KillUnit(u)
//and etc...

Or something like that. I just want to say If I don't use variables on values, then engine auto-creates local variables on those values.
 
Status
Not open for further replies.
Back
Top