Champ-Bear
New Member
- Reaction score
- 5
I can't seem to get part of this trigger to work.
The bolded parts of this trigger don't work. It doesn't create nor remove the item I want it to.
Code:
BoK Upgrade 1
Events
Unit - A unit Sells an item (from shop)
Conditions
(Item-type of (Sold Item)) Equal to Upgrade Book of Knowledge
Actions
[B]Neutral Building - Remove (Item-type of (Sold Item)) from Upgrades Shop 0040 <gen>
Neutral Building - Add Upgrade Book of Knowledge to Upgrades Shop 0040 <gen> with 1 in stock and a max stock of 1[/B]
Wait 2.00 seconds
Unit - Replace Book of Knowledge - 1 0039 <gen> with a Book of Knowledge - 2 using The new unit's max life and mana
Set Bok_2 = (Last replaced unit)
Game - Display to (All players) the text: (The |c00ff0303Book of Knowledge|r has been upgraded by + ((Name of (Owner of (Buying unit))) + .))
Trigger - Turn off (This trigger)
Code:
BoK Upgrade 2
Events
Unit - A unit Sells an item (from shop)
Conditions
(Item-type of (Sold Item)) Equal to Upgrade Book of Knowledge
Actions
[B]Neutral Building - Remove Upgrade Book of Knowledge from Upgrades Shop 0040 <gen>[/B]
Wait 2.00 seconds
Unit - Replace Bok_2 with a Book of Knowledge - 3 using The new unit's max life and mana
Game - Display to (All players) the text: (The |c00000000Book of Knowledge|r has been further upgraded by + ((Name of (Owner of (Buying unit))) + .))
Trigger - Turn off (This trigger)