Triggers based on who trains the unit?

jayhant

New Member
Reaction score
0
Hey guys, im wondering if its possible to make a trigger where the outcome of the trigger is dependant on what kind of building (eg different types of barracks) trains it?

So for example, there is one type of unit (eg Archer) and 4 types of barracks (Each one representing a different tabard)

So if a Lion Tabard barrack trains the Archer, a lion tabard attachment ability would be given to that Archer.
If a Eagle Tabard barrack trains the same Archer, an eagle tabard attachment would pop up on the Archer instead.

Anyone know if this is possible and how? (Would be easier than having different variations of Archers with different tabards instead)
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Yes, just make an if statement with the conditions
Trigger:
  • (Triggering Unit) Equal to Eagle Tabard Barrack
    • And
    • Trained unit Equal to Archer
    • then Action: Add Eagle Ability to Last created unit

That is a base trigger, and so might not work properly.

P.S. It is easier to have 4 different types of archers, as you can just make four different types of abilities and set them to it without triggers.
 
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