hello, i have a trigger problem. what i want this trigger to do is..when i buy an item such as for instance "cure" it will replace the old spellbook with a new one adding that skill to the new spellbook.
here is my trigger:
Events
Unit - A unit Sells an item (from shop)
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Buying unit)) Equal to Priest
(Item-type of (Sold Item)) Equal to Cure
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Learned Hero Skill) Equal to Priest Spell Book 0
Then - Actions
Unit - Remove Priest Spell Book 0 from (Buying unit)
Unit - Add Priest Spell Book 1 to (Buying unit)
Item - Remove (Sold Item)
Else - Actions
Do nothing
Being spell book 0 has no skills in it and is the starting skill for the hero..as spell book 1 has the cure spell in it
help is appreciated, thanks
here is my trigger:
Events
Unit - A unit Sells an item (from shop)
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Buying unit)) Equal to Priest
(Item-type of (Sold Item)) Equal to Cure
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Learned Hero Skill) Equal to Priest Spell Book 0
Then - Actions
Unit - Remove Priest Spell Book 0 from (Buying unit)
Unit - Add Priest Spell Book 1 to (Buying unit)
Item - Remove (Sold Item)
Else - Actions
Do nothing
Being spell book 0 has no skills in it and is the starting skill for the hero..as spell book 1 has the cure spell in it
help is appreciated, thanks