Abilities: Activating same ability on my building

Kingdom

New Member
Reaction score
0
Sup people.

So here's the problem. I got a building with 2 abilities (for now, will have 18 in total) and these abilities are based from Berserk (tried Windwalk too), one is named Pay 500g to Yellow/Mage and the other Pay 500g to Orange/Warrior. One in on slot 0,0 and the other slot 0,1 on the building. When the user clicks on them, he'll give 500g to the other player. Here are the triggers activated when the users clicks on the two buttons:

Code:
Red Pay Mage
    Events
        Unit - A unit owned by Player 1 (Red) Begins casting an ability
    Conditions
        (Ability being cast) Equal to Pay 500g to Yellow/Mage 
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 1 (Red) Current gold) Greater than or equal to 500
            Then - Actions
                Player - Add -500 to Player 1 (Red) Current gold
                Player - Add 500 to Player 5 (Yellow) Current gold
                Game - Display to Player Group - Player 1 (Red) for 3.00 seconds the text: |c0080FF80You have ...
                Game - Display to Player Group - Player 5 (Yellow) for 3.00 seconds the text: |c0080FF80The Red K...
            Else - Actions
                Game - Display to Player Group - Player 1 (Red) for 3.00 seconds the text: |cffff0000You don't...

Code:
Red Pay Warrior
    Events
        Unit - A unit owned by Player 1 (Red) Begins casting an ability
    Conditions
        (Ability being cast) Equal to Pay 500g to Orange/Warrior 
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 1 (Red) Current gold) Greater than or equal to 500
            Then - Actions
                Player - Add -500 to Player 1 (Red) Current gold
                Player - Add 500 to Player 6 (Orange) Current gold
                Game - Display to Player Group - Player 1 (Red) for 3.00 seconds the text: |c0080FF80You have ...
                Game - Display to Player Group - Player 6 (Orange) for 3.00 seconds the text: |c0080FF80The Red K...
            Else - Actions
                Game - Display to Player Group - Player 1 (Red) for 3.00 seconds the text: |cffff0000You don't...

Question: Why the crap when i click on orange it activates the yellow trigger? Is it cuz they're both the same buffing ability? What kind of ability should i use instead?

If i add more buttons, like green, pink, etc... the same problem happens activating the yellow trigger, which is the first button/trigger.

Thanks in advance!
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
> I got a building with 2 abilities
> these abilities are based from Berserk

Same root abilities always makes bugs...
Try different abilities as base (Roar, Battle Roar, Fan of Knives, etc.)
 

Kingdom

New Member
Reaction score
0
> I got a building with 2 abilities
> these abilities are based from Berserk

Same root abilities always makes bugs...
Try different abilities as base (Roar, Battle Roar, Fan of Knives, etc.)

Thanks a lot man, it's working now, :).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top