"Learning a spell costs money" problem.

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:

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 :?
 

Manix

Well-Known Member
Reaction score
29
I need to get "Learned Skill" in the integer arithmetic ... How do I do that ?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top