• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Revive

Status
Not open for further replies.
Level 20
Joined
Oct 21, 2006
Messages
3,231
Unit dies

Unit is hero
Boolean[player number of owner of triggering unit] equal to True

Set variable Boolean[player number of owner of triggering unit] = False
Wait 2.00 seconds
Revive triggering unit at position of dying unit
 
Level 4
Joined
Apr 24, 2008
Messages
95
Ok wait i got pick hero system and if you picked hero he get ankh but how to put in his inventory ankh??? there are 10 players
 
Level 20
Joined
Oct 21, 2006
Messages
3,231
You can just use my example on a few posts below, so you dont have to consume one inventory slot for the revive system.

Event (Unit) - Unit sells unit
Condition (Boolean)- Sold unit is hero equal to true
Actions (Hero) - Create 1 Ankh for sold unit

Or if you have another kind of picking system you could try entering unit or whatever your event is based on.
 
Status
Not open for further replies.
Top