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

Unit Die = Give item

Status
Not open for further replies.
Level 2
Joined
Jun 28, 2008
Messages
7
Well im trying but i cant find it;p

I have unit, she buy item then she die. After death she should get this item, but i cant trigger this.

Problems:
- normal ( nonhero) unit
- dynamic map ( paintball )
- random model ( never same unit revive )
- before unit respawn 1st game check where she can respawn, if she find spot then she random model then spawn her.
- hero inventory
- item(s) sholud be in inventory not spawned under their legs

Then question is how to give dead unit to new spawned, items belongs to player.

Thanks for any tips
 
Level 14
Joined
Apr 21, 2007
Messages
1,465
You'll need to use item variables. Create 6 item variables for every player in the game(so if 5 players is the max you'll need 6*5=30 variables). Then you'll want to set those variables to each slot of the hero's inventory. When a hero dies just give the variable to the new hero that arrives for that player.

I don't know if it's possible to set item variables to unit's inventory so you might have to change all your units to heroes.
 
Level 2
Joined
Jun 28, 2008
Messages
7
I dont need heroes they change too much in game:p
And triggering so many variables is sick if game is for 11 players and every player have 4 slots to use oO no way:p

I was thinking about 2nd unit which will take items and give them back to new one;p but its sick too;d
 
Level 2
Joined
Dec 23, 2007
Messages
23
u could always make non-levelable heroes... else the variables is a good option... jus use arrays to prevent self-confusion???
 
Status
Not open for further replies.
Top