Ragnar Rök
New Member
- Reaction score
- 0
Hello!
I want this trigger to exchange a Tome of Agility(1) (costs 1 lumber) with a Tome of Agility(2) (costs 2 lumber) as soon as the buying hero has 11* agility. Well the trigger almost does, it adds a "Tome of Agility(2)" but the "Tome of Agility(1)" stays.
However I can live with that.
The serious problem is that the "Tome of Agility(2)" is not given to the hero and instantly used as with the first one, instead it drops on the ground below the shop:banghead:
The two Items are exact copies except for the lumbercost and it works when the shop has the item from the beginning aswell! So it has nothing to do with the items stats.
Thank you.
*Note that
means that while the hero still has 10 agility he buys the 11:th book and gets 11 agility before the books are changed.
I want this trigger to exchange a Tome of Agility(1) (costs 1 lumber) with a Tome of Agility(2) (costs 2 lumber) as soon as the buying hero has 11* agility. Well the trigger almost does, it adds a "Tome of Agility(2)" but the "Tome of Agility(1)" stays.
However I can live with that.
The serious problem is that the "Tome of Agility(2)" is not given to the hero and instantly used as with the first one, instead it drops on the ground below the shop:banghead:
The two Items are exact copies except for the lumbercost and it works when the shop has the item from the beginning aswell! So it has nothing to do with the items stats.
Thank you.
Code:
Stats
Events
Unit - A unit Sells an item (from shop)
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Agility of (Buying unit) (Exclude bonuses)) Equal to 10
Then - Actions
Neutral Building - Add Tome of Agility (2) to (Selling unit) with 5 in stock and a max stock of 5
Neutral Building - Remove Tome of Agility (1) from (Selling unit)
Else - Actions
*Note that
Code:
If - Conditions
(Agility of (Buying unit) (Exclude bonuses)) Equal to 10