• 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.

How to: Boat hero?

Status
Not open for further replies.
Level 4
Joined
Jan 9, 2010
Messages
89
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?.
 
Level 11
Joined
Aug 15, 2008
Messages
720
  • 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
 
Level 10
Joined
Sep 6, 2008
Messages
423
@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.
 
Level 10
Joined
Sep 6, 2008
Messages
423
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)
 
Level 11
Joined
Aug 15, 2008
Messages
720
  • 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.
Top