Event
Unit - A unit died
Conditions
(Unit-Type of (Dying unit)) Equal to (==) Footman
Actions
Item - Create Tome of Experience at (Position of (Dying unit))
Code:Event Unit - A unit died Conditions (Unit-Type of (Dying unit)) Equal to (==) Footman Actions Item - Create Tome of Experience at (Position of (Dying unit))
now a tome of experience is dropped each time a footman dies
He didn't want a chance, he wanted it to drop everytime the unit dies, and in my example i used footman.
You just made a unnecessary post..nice,
Short Sword2
Events
Unit - A unit Dies
Conditions
((Unit-type of (Dying unit)) Equal to Kobold) and ((Owner of (Dying unit)) Equal to Player 12 (Brown))
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 2
Then - Actions
Item - Create Short Sword at (Position of (Dying unit))
Else - Actions
Do nothing
Spawns
Events
Unit - A unit owned by Player 12 (Brown) Dies
Conditions
Actions
Wait 90.00 seconds
Unit - Create 1 (Unit-type of (Dying unit)) for Player 12 (Brown) at (Position of (Dying unit)) facing Default building facing degrees
Respawning Hostile Creatures:
Code:Spawns Events Unit - A unit owned by Player 12 (Brown) Dies Conditions Actions Wait 90.00 seconds Unit - Create 1 (Unit-type of (Dying unit)) for Player 12 (Brown) at (Position of (Dying unit)) facing Default building facing degrees
stop with this nonsense. This is solved, your just replying with a worse trigger..This trigger will drop an item for ever time this specific type of unit dies.
Code:Short Sword2 Events Unit - A unit Dies Conditions ((Unit-type of (Dying unit)) Equal to Kobold) and ((Owner of (Dying unit)) Equal to Player 12 (Brown)) Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Random integer number between 1 and 100) Less than or equal to 2 Then - Actions Item - Create Short Sword at (Position of (Dying unit)) Else - Actions Do nothing
Respawning Hostile Creatures:
Code:Spawns Events Unit - A unit owned by Player 12 (Brown) Dies Conditions Actions Wait 90.00 seconds Unit - Create 1 (Unit-type of (Dying unit)) for Player 12 (Brown) at (Position of (Dying unit)) facing Default building facing degrees
Why is that? Doesnt make any difference, does it?Never use dying unit, use triggering unit is better.
Please be nice with other
It isn't unnecessary post, it is still very useful for many people. That's why moderators don't delete old post after the problem solve. Other people can still read, search, and learn from them
Why is that? Doesnt make any difference, does it?