Spray-
Member
- Reaction score
- 1
Yo, been trying to make a system where you buy spells as "upgrades" from a general building, which Should give my hero a spell, and when the same upgrade is done again, replace the old ability with a new one. This is the code ive got and it doesnt seem to work :/
Any help appreciated.
Code:
Untitled Trigger 002
Events
Unit - A unit Finishes an upgrade
Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Test Spell Upgrade 1
(Current research level of Test Spell Upgrade 1 for Player 1 (Red)) Equal to 0
Then - Actions
Hero - Learn skill for Wizard 0000 <gen>: Blink
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Test Spell Upgrade 1
(Current research level of Test Spell Upgrade 1 for Player 1 (Red)) Equal to 1
Then - Actions
Unit - Remove Blink from Wizard 0000 <gen>
Hero - Learn skill for Wizard 0000 <gen>: Blink
Else - Actions
Do nothing
Any help appreciated.