- Joined
- Aug 21, 2008
- Messages
- 533
Need help with this drop trigger
First off all i made a library:
Cans omeone help?
First off all i made a library:
-
item library
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
-------- -----------------------------------------weapons------------------------------------- --------
-
Set index2 = 1
-
Set index[index2] = 1
-
Set itemdrop[index[index2]] = stone axe
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = good stone axe
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = perfect stone axe
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = iron axe
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = good iron axe
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = perfect iron axe
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = steel axe
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = good steel axe
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = perfect steel axe
-
-------- -----------------------------------------armor------------------------------------- --------
-
Set index2 = 2
-
Set index[index2] = 1
-
Set itemdrop[index[index2]] = old cloth armor
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = cloth armor
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = new cloth armor
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = old leather armor
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = leather armor
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = new leather armor
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = old hardened leather armor
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = hardened leather armor
-
Set index[index2] = (index[index2] + 1)
-
Set itemdrop[index[index2]] = new hardened leather armor
-
-
-
Drops
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Owner of (Triggering unit)) Equal to Player 12 (Brown)
-
-
Actions
-
Set index2 = (Random integer number between 1 and 4)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
index2 Equal to 1
-
-
Then - Actions
-
Set index2 = (Random integer number between 1 and 2)
-
Set index[index2] = (Random integer number between 0 and 3)
-
Set index[index2] = (index[index2] + (Level of (Triggering unit)))
-
Item - Create itemdrop[index[index2]] at (Position of (Triggering unit))
-
-
Else - Actions
-
-
-
Cans omeone help?
Last edited: