Manix
Well-Known Member
- Reaction score
- 29
Alright, my trigger is supposed to trigger when a unit learns a spell and it's supposed to check if player has X gold, if not level of ability is set to -1, the problem is that I can't find the right condition to check if the player has the gold, what I got is this:
The problem part is bolded and red, the problem is that there is no "learned skill", only "ability being cast" .. What should I do :?
Code:
LEARN SPELLS
Events
Unit - A unit Learns a skill
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) Current gold) Less than (50 + [B][COLOR="Red"]((Level of Acid Bomb for (Triggering unit))[/COLOR][/B] x 50))
Then - Actions
Else - Actions
The problem part is bolded and red, the problem is that there is no "learned skill", only "ability being cast" .. What should I do :?