- Joined
- May 21, 2009
- Messages
- 289
I need an easier item drop system than this one- When the Demonic Goblin Dies, I need one "item set" (variable-array) to drop per player, but this trigger takes forever-
-
GOBLIN HALLOW
-
Events
-
Unit - A unit owned by Neutral Hostile Dies
-
-
Conditions
-
(Unit-type of (Dying unit)) Equal to Demonic Goblin
-
-
Actions
-
Wait 0.01 seconds
-
Set point = (Center of Goblin Hallow Items <gen>)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units in Goblin Hallow Rewards <gen>)) Equal to 1
-
-
Then - Actions
-
Item - Create itemdropgoblinhallow[(Random integer number between 1 and 6)] at point
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units in Goblin Hallow Rewards <gen>)) Equal to 2
-
-
Then - Actions
-
Item - Create itemdropgoblinhallow[(Random integer number between 1 and 6)] at point
-
Item - Create itemdropgoblinhallow[(Random integer number between 1 and 6)] at point
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units in Goblin Hallow Rewards <gen>)) Equal to 3
-
-
Then - Actions
-
Item - Create itemdropgoblinhallow[(Random integer number between 1 and 6)] at point
-
Item - Create itemdropgoblinhallow[(Random integer number between 1 and 6)] at point
-
Item - Create itemdropgoblinhallow[(Random integer number between 1 and 6)] at point
-
-
Else - Actions
-
-
-
-
-
-
Custom script: call RemoveLocation(udg_point)
-
Item - Set the custom value of (Last created item) to 0
-
-
-
Warrior
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
(Item-class of (Item being manipulated)) Equal to Permanent
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Hero manipulating item)) Not equal to Imperial (Warrior)
-
(Unit-type of (Hero manipulating item)) Not equal to Nord (Warrior)
-
(Unit-type of (Hero manipulating item)) Not equal to Redguard (Warrior)
-
(Unit-type of (Hero manipulating item)) Not equal to Dark Elf (Shadowblade)
-
(Unit-type of (Hero manipulating item)) Not equal to Orc (Warrior)
-
-
-
-
Then - Actions
-
Hero - Drop (Item being manipulated) from (Hero manipulating item)
-
-
Else - Actions
-
Do nothing
-
-
-
-