Job Trigger, Not Working

kiren17

New Member
Reaction score
2
I have the following triggers on my map.

Trigger:
  • Become mayor
    • Events
      • Unit - A unit enters Mayor Job <gen>
    • Conditions
      • (Owner of Banker Job 0051 <gen>) Not equal to (Owner of (Triggering unit))
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Wait 2.00 seconds
      • Unit - Change ownership of Mayor Job 0050 <gen> to (Owner of (Triggering unit)) and Change color
      • Game - Display to (All players matching ((Owner of Mayor Job 0050 <gen>) Equal to (Owner of (Triggering unit)))) the text: You are now the Tow...


Trigger:
  • Leave mayor
    • Events
      • Unit - A unit enters Mayor Job <gen>
    • Conditions
      • (Owner of Mayor Job 0050 <gen>) Equal to (Owner of (Triggering unit))
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Wait 2.00 seconds
      • Unit - Change ownership of Mayor Job 0050 <gen> to Player 12 (Brown) and Change color
      • Game - Display to (All players matching ((Owner of Mayor Job 0050 <gen>) Equal to (Owner of (Triggering unit)))) the text: You are no longer t...


Problem is i can take the job but i cannot quit the job.

Is there a leak in the triggers?

Thanks in advance for help.
 

kiren17

New Member
Reaction score
2
LOAP Animals Triggers:
Trigger:
  • Employ mayor
    • Events
      • Unit - A unit enters employmayor <gen>
    • Conditions
      • (Owner of Employ Doctor 0061 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Bank Manager 0080 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Vet 0065 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Rookie 0280 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Vehical Sales man 0076 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Mall Manager 0067 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Bank Manager 0081 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Mailman 0047 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Police Units Trainer 0253 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Mailman 0007 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Mailman 0008 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Garbage 0033 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Garbage 0131 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Cooker! 0057 <gen>) Not equal to (Owner of (Triggering unit))
      • (Owner of Employ Mayor 0069 <gen>) Equal to Player 12 (Brown)
      • ((Triggering unit) is A Hero) Equal to True
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Gocart Manager
          • (Unit-type of (Triggering unit)) Equal to White Male
          • (Unit-type of (Triggering unit)) Equal to White Woman
          • (Unit-type of (Triggering unit)) Equal to Teenage boy
          • (Unit-type of (Triggering unit)) Equal to Teenager Boy Vers.2
          • (Unit-type of (Triggering unit)) Equal to Teenage Girl
          • (Unit-type of (Triggering unit)) Equal to Teenage Girl Vers.2
    • Actions
      • Wait 2.00 seconds
      • Unit - Change ownership of Employ Mayor 0069 <gen> to (Owner of (Triggering unit)) and Change color
      • Game - Display to (All players matching ((Owner of Employ Mayor 0069 <gen>) Equal to (Owner of (Triggering unit)))) the text: You are now the Tow...


Trigger:
  • quit mayor
    • Events
      • Unit - A unit enters employmayor <gen>
    • Conditions
      • (Owner of Employ Mayor 0069 <gen>) Equal to (Owner of (Triggering unit))
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Wait 2.00 seconds
      • Unit - Change ownership of Employ Mayor 0069 <gen> to Player 12 (Brown) and Change color
      • Game - Display to (All players matching ((Owner of Employ Mayor 0069 <gen>) Equal to (Owner of (Triggering unit)))) the text: You are no longer t...


They have the same event.

I noticed my first trigger lacks
Trigger:
  • (Owner of Employ Mayor 0069 <gen>) Equal to Player 12 (Brown)


Would this be the flaw in my trigger?
 

Bloodydood

New Member
Reaction score
14
If they have the same event, why make 2 triggers?

Just use 1 trigger and spam If, Then, Else actions
 

HydraRancher

Truth begins in lies
Reaction score
197
Trigger:
  • Become mayor
    • Events
      • Unit - A unit enters Mayor Job <gen>
    • Conditions
      • (Owner of Banker Job 0051 <gen>) Not equal to (Owner of (Triggering unit))
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Wait 2.00 seconds
      • Unit - Change ownership of Mayor Job 0050 <gen> to (Owner of (Triggering unit)) and Change color
      • Game - Display to (All players matching ((Owner of Mayor Job 0050 <gen>) Equal to (Owner of (Triggering unit)))) the text: You are now the Tow...


Trigger:
  • Leave mayor
    • Events
      • Unit - A unit enters Mayor Job <gen>
    • Conditions
      • (Owner of Mayor Job 0050 <gen>) Equal to (Owner of (Triggering unit))
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Wait 2.00 seconds
      • Unit - Change ownership of Mayor Job 0050 <gen> to Player 12 (Brown) and Change color
      • Game - Display to (All players matching ((Owner of Mayor Job 0050 <gen>) Equal to (Owner of (Triggering unit)))) the text: You are no longer t...


In both triggers the (Owner of [unit]) changes,

Number 1:
Trigger:
  • (Owner of Banker Job 0051 <gen>) Not equal to (Owner of (Triggering unit))


Number 2:
Trigger:
  • (Owner of Mayor Job 0050 <gen>) Equal to (Owner of (Triggering unit))
 

kiren17

New Member
Reaction score
2
I added
Trigger:
  • (Owner of Employ Mayor 0069 <gen>) Equal to Player 12 (Brown)
to my second trigger and now it works right.

Thanks for the help.
 

tmow

New Member
Reaction score
7
Use a variable...Your saying this on your quit and it makes no sence...
Trigger:
  • (Owner of Mayor Job 0050 <gen>) Equal to (Owner of (Triggering unit))


IT doesnt know what that triggering unit is....I suggest you save the player to a variable in the Entering position so all you have to do is say...
Player equal to *****
then proceed with your actions
 
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