- Joined
- Jan 13, 2008
- Messages
- 559
-
use anvil
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Use Anvil
-
((Triggering unit) has an item of type Battle Axe) Equal to True
-
-
Actions
-
Set strenghted_itemcount = (strenghted_itemcount + 1)
-
Set strenghted_items[strenghted_itemcount] = (Item carried by (Triggering unit) in slot 1)
-
Game - Display to (All players) the text: (strenghted_items + ((String(strenghted_itemcount)) + (] = + (Name of (Item carried by (Triggering unit) in slot 1)))))
-
Hero - Drop the item from slot 1 of (Triggering unit)
-
-
So far so good.
Now when I equip said item, i should receive a dmg bonus but for some reason the item is not stored anymore?
-
equip strenghted weapon
-
Events
-
Unit - A unit enters (Playable map area)
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Battle Axe
-
-
Then - Actions
-
For each (Integer strenghtedInt) from 1 to strenghted_itemcount, do (Actions)
-
Loop - Actions
-
Game - Display to (All players) the text: (strenghted_items[ + ((String(strenghtedInt)) + (] = + (Name of strenghted_items[strenghtedInt]))))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item carried by (Triggering unit) of type Battle Axe) Equal to strenghted_items[strenghtedInt]
-
-
Then - Actions
-
Game - Display to (All players) the text: works
-
Unit - Create 1 strenghten sword (dummy) for Neutral Passive at (Position of (Triggering unit)) facing Default building facing degrees
-
Unit - Order (Last created unit) to Human Priest - Inner Fire (Triggering unit)
-
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
-
Skip remaining actions
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-
so it's basicaly just empty. Any idea why?