How can I make a unit drop's 10 same items ( wen Killed) 1 for each player ?
:nuts:
10x to evry anser
EDIT: can day be droped direcly to the inventar of the player
How can I make a unit drop 10 of the same items (When they are killed), one for each player? <I'm guessing this means have them fall on the ground.>
There are 10 players and I want one to drop per player <Way off, but I think this is right>
Edit: Can the Items be directly dropped into the inventory of the hero? <I'm pretty sure I aced this part>
Guessed Transfer Of the Following To English
Okay now to try to help you out.
Yes it is possible to drop an item straight into a hero's inventory, go to the action "Hero - Create Item For Hero" and you can choose the item and which hero it goes to.
You can make a creature drop items by setting them up on a loot table by right clicking them, or you can make it so if a unit dies equal to the unit blah blah blah, then it will drop 10 of the items at the exact spot of where the unit dies.
The only tips I have really are to grab a dictionary or download the "World Editor for the Illiterate", good luck though!
-Jpres
Events
A unit dies
Condition
(The enemy unit) equals triggering unit
Action
For Integer A, 1-10, do multiple actions
Loop Actions
Create (Your item) for Player (Integer A) and give to Hero[Integer A]
it work's for meCode:Events A unit dies Condition (The enemy unit) equals triggering unit Action For Integer A, 1-10, do multiple actions Loop Actions Create (Your item) for Player (Integer A) and give to Hero[Integer A]
hero is a unit array. if your map uses 1 hero per player, set player 1's hero to Hero[1], Player 2's to Hero[2]
if your map uses more than 1 hero per player than use a Unit Group array and pick all of player 1's heroes and set them to Hero_Group[1]
player 2's heroes to Hero_Group[2] etc..