• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

I need help with a bit complicated tigger

Status
Not open for further replies.
Level 11
Joined
Jul 17, 2013
Messages
544
Ok so guys thing i want to make is a bit complicated but i hope u will understant me and i will get help here.Im making ww2 map.I want to make france being able to choose beetwen joinining axis or allies when germany captures paris.But the problem is that when france types -join allies it joins axis anyway
Paris captured
Events
Unit - City 0017 <gen> Changes owner
Conditions
Or - Any (Conditions) are true
Conditions
((Owner of (Triggering unit)) Equal to Player 4 (Purple)) or ((Owner of (Triggering unit)) Equal to Player 9 (Gray))
Actions
Game - Display to (All players) for 15.00 seconds the text: Paris is captured.F...
Trigger - Turn on fr allies <gen>
Wait 20.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) Equal to Player 4 (Purple)) or ((Owner of (Triggering unit)) Equal to Player 9 (Gray))
Then - Actions
Player - Set name of Player 2 (Blue) to Vichy France
Unit - Kill Edouard Daladier 1319 <gen>
Game - Display to (All players) for 15.00 seconds the text: Paris is captured a...
Unit - Change ownership of City 0013 <gen> to Player 2 (Blue) and Change color
Unit - Change ownership of Town 0146 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of City 3614 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of Town 0012 <gen> to Player 2 (Blue) and Change color
Unit - Change ownership of City 0016 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of City 0017 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of Town 0011 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of Shipyard 3807 <gen> to Player 2 (Blue) and Change color
Unit - Change ownership of Shipyard 3891 <gen> to Player 9 (Gray) and Change color
Player - Make Player 1 (Red) treat Player 2 (Blue) as an Neutral
Player - Make Player 2 (Blue) treat Player 1 (Red) as an Neutral
Player - Make Player 2 (Blue) treat Player 7 (Green) as an Neutral
Player - Make Player 7 (Green) treat Player 2 (Blue) as an Neutral
Player - Make Player 6 (Orange) treat Player 9 (Gray) as an Ally with shared vision
Player - Make Player 9 (Gray) treat Player 6 (Orange) as an Ally with shared vision
Player - Make Player 9 (Gray) treat Player 12 (Brown) as an Ally with shared vision
Player - Make Player 12 (Brown) treat Player 9 (Gray) as an Ally with shared vision
Unit - Change ownership of Town 0014 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of TradePort 1569 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of TradePort 1555 <gen> to Player 2 (Blue) and Change color
Unit - Change ownership of TradePort 1571 <gen> to Player 2 (Blue) and Change color
Unit - Change ownership of TradePort 1570 <gen> to Player 2 (Blue) and Change color
Unit - Change ownership of Town 0015 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of Town 0018 <gen> to Player 9 (Gray) and Change color
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in magonit <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 9 (Gray) and Change color)
Unit - Change ownership of TradeCenter 2174 <gen> to Player 2 (Blue) and Change color
Unit - Change ownership of TradeCenter 2282 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of TradeCenter 2216 <gen> to Player 2 (Blue) and Change color
Unit - Change ownership of Town 2199 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of Town 2304 <gen> to Player 4 (Purple) and Change color
Unit - Change ownership of City 0019 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of City 2303 <gen> to Player 2 (Blue) and Change color
Unit - Change ownership of City 2301 <gen> to Player 2 (Blue) and Change color
Unit - Change ownership of City 2302 <gen> to Player 2 (Blue) and Change color
Unit - Change ownership of City 0069 <gen> to Player 4 (Purple) and Change color
Unit - Change ownership of City 0070 <gen> to Player 4 (Purple) and Change color
Unit - Change ownership of Town 0075 <gen> to Player 4 (Purple) and Change color
Unit - Kill Destroyer 1994 <gen>
Unit - Kill Battleship 1993 <gen>
Unit - Kill Destroyer 1995 <gen>
Unit - Kill Destroyer 1996 <gen>
Unit - Kill Battleship 1998 <gen>
Game - Display to (All players) for 15.00 seconds the text: ROBIE KUPE
Unit - Kill Destroyer 1997 <gen>
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in kongo dla teala <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 3 (Teal) and Change color)
Player Group - Pick every player in Kathilich and do (Player - Make (Picked player) treat Player 2 (Blue) as an Enemy)
Player Group - Pick every player in Kathilich and do (Player - Make Player 2 (Blue) treat (Picked player) as an Enemy)
Player Group - Add Player 2 (Blue) to Musulm
Player Group - Remove Player 2 (Blue) from Kathilich
Player Group - Pick every player in Musulm and do (Player - Make (Picked player) treat Player 2 (Blue) as an Ally with shared vision)
Player Group - Pick every player in Musulm and do (Player - Make Player 2 (Blue) treat (Picked player) as an Ally with shared vision)
Trigger - Turn on inc paryz <gen>
Trigger - Turn on bonus vichy <gen>
Trigger - Run Italy joins the war <gen> (checking conditions)
Trigger - Turn off (This trigger)
Trigger - Turn off fr allies <gen>
Else - Actions
Do nothing








fr allies
Events
Player - Player 2 (Blue) types a chat message containing -join allies as An exact match
Conditions
Actions
Trigger - Turn off Paris captured <gen>
Game - Display to (All players) for 15.00 seconds the text: France has decided ...
Unit - Kill Edouard Daladier 1319 <gen>
Game - Display to (All players) for 15.00 seconds the text: Paris is captured a...
Unit - Change ownership of Town 0146 <gen> to Player 9 (Gray) and Change color
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in vichy2 <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 6 (Orange) and Change color)
Unit - Change ownership of City 3614 <gen> to Player 9 (Gray) and Change color
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in vichy3 <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 6 (Orange) and Change color)
Unit - Change ownership of City 0016 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of City 0017 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of Town 0011 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of Shipyard 3891 <gen> to Player 9 (Gray) and Change color
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in vichy4 <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 6 (Orange) and Change color)
Player - Make Player 6 (Orange) treat Player 9 (Gray) as an Ally with shared vision
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in vichy5 <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 6 (Orange) and Change color)
Player - Make Player 9 (Gray) treat Player 6 (Orange) as an Ally with shared vision
Player - Make Player 9 (Gray) treat Player 12 (Brown) as an Ally with shared vision
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in do vichy <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 6 (Orange) and Change color)
Player - Make Player 12 (Brown) treat Player 9 (Gray) as an Ally with shared vision
Unit - Change ownership of Town 0014 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of TradePort 1569 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of Town 0015 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of Town 0018 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of TradeCenter 2282 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of Town 2199 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of Town 2304 <gen> to Player 4 (Purple) and Change color
Unit - Change ownership of City 0019 <gen> to Player 9 (Gray) and Change color
Unit - Change ownership of City 0069 <gen> to Player 4 (Purple) and Change color
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in magonit <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 9 (Gray) and Change color)
Unit - Change ownership of City 0070 <gen> to Player 4 (Purple) and Change color
Unit - Change ownership of Town 0075 <gen> to Player 4 (Purple) and Change color
Unit - Change ownership of Town 0068 <gen> to Player 6 (Orange) and Change color
Unit - Change ownership of Destroyer 1994 <gen> to Player 6 (Orange) and Change color
Unit - Change ownership of Battleship 1993 <gen> to Player 6 (Orange) and Change color
Unit - Change ownership of Destroyer 1995 <gen> to Player 6 (Orange) and Change color
Unit - Change ownership of Destroyer 1996 <gen> to Player 6 (Orange) and Change color
Unit - Change ownership of Battleship 1998 <gen> to Player 6 (Orange) and Change color
Unit - Change ownership of Destroyer 1997 <gen> to Player 6 (Orange) and Change color
Player - Make Player 2 (Blue) treat Player 6 (Orange) as an Enemy
Player - Make Player 6 (Orange) treat Player 2 (Blue) as an Enemy
Player - Make Player 4 (Purple) treat Player 6 (Orange) as an Ally with shared vision
Player - Make Player 6 (Orange) treat Player 4 (Purple) as an Ally with shared vision
Trigger - Turn on inc paryz <gen>
Trigger - Turn on bonus vichy <gen>
Trigger - Run Italy joins the war <gen> (checking conditions)
Trigger - Turn off fr allies <gen>
Trigger - Turn off (This trigger)




My problem is that i want then actions at tigger paris captured to be turned off when player blue types -join allies.Then actions at tigger paris captured doesnt turn off somehow.As u can see i made action Trigger - Turn off Paris captured <gen>. I simply want to make blue having 2 choices if he wants to join allies he types join allies if he doesnt want anything he waits!
 
Level 11
Joined
Jul 17, 2013
Messages
544
Code:
Paris captured
    Events
        Unit - City 0017 <gen> Changes owner
    Conditions
        Or - Any (Conditions) are true
            Conditions
                ((Owner of (Triggering unit)) Equal to Player 4 (Purple)) or ((Owner of (Triggering unit)) Equal to Player 9 (Gray))
    Actions
        Game - Display to (All players) for 15.00 seconds the text: Paris is captured.F...
        Trigger - Turn on fr allies <gen>
        Wait 20.00 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Owner of (Triggering unit)) Equal to Player 4 (Purple)) or ((Owner of (Triggering unit)) Equal to Player 9 (Gray))
            Then - Actions
                Player - Set name of Player 2 (Blue) to Vichy France
                Unit - Kill Edouard Daladier 1319 <gen>
                Game - Display to (All players) for 15.00 seconds the text: Paris is captured a...
                Unit - Change ownership of City 0013 <gen> to Player 2 (Blue) and Change color
                Unit - Change ownership of Town 0146 <gen> to Player 9 (Gray) and Change color
                Unit - Change ownership of City 3614 <gen> to Player 9 (Gray) and Change color
                Unit - Change ownership of Town 0012 <gen> to Player 2 (Blue) and Change color
                Unit - Change ownership of City 0016 <gen> to Player 9 (Gray) and Change color
                Unit - Change ownership of City 0017 <gen> to Player 9 (Gray) and Change color
                Unit - Change ownership of Town 0011 <gen> to Player 9 (Gray) and Change color
                Unit - Change ownership of Shipyard 3807 <gen> to Player 2 (Blue) and Change color
                Unit - Change ownership of Shipyard 3891 <gen> to Player 9 (Gray) and Change color
                Player - Make Player 1 (Red) treat Player 2 (Blue) as an Neutral
                Player - Make Player 2 (Blue) treat Player 1 (Red) as an Neutral
                Player - Make Player 2 (Blue) treat Player 7 (Green) as an Neutral
                Player - Make Player 7 (Green) treat Player 2 (Blue) as an Neutral
                Player - Make Player 6 (Orange) treat Player 9 (Gray) as an Ally with shared vision
                Player - Make Player 9 (Gray) treat Player 6 (Orange) as an Ally with shared vision
                Player - Make Player 9 (Gray) treat Player 12 (Brown) as an Ally with shared vision
                Player - Make Player 12 (Brown) treat Player 9 (Gray) as an Ally with shared vision
                Unit - Change ownership of Town 0014 <gen> to Player 9 (Gray) and Change color
                Unit - Change ownership of TradePort 1569 <gen> to Player 9 (Gray) and Change color
                Unit - Change ownership of TradePort 1555 <gen> to Player 2 (Blue) and Change color
                Unit - Change ownership of TradePort 1571 <gen> to Player 2 (Blue) and Change color
                Unit - Change ownership of TradePort 1570 <gen> to Player 2 (Blue) and Change color
                Unit - Change ownership of Town 0015 <gen> to Player 9 (Gray) and Change color
                Unit - Change ownership of Town 0018 <gen> to Player 9 (Gray) and Change color
                Custom script:   set bj_wantDestroyGroup = true
                Unit Group - Pick every unit in (Units in magonit <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 9 (Gray) and Change color)
                Unit - Change ownership of TradeCenter 2174 <gen> to Player 2 (Blue) and Change color
                Unit - Change ownership of TradeCenter 2282 <gen> to Player 9 (Gray) and Change color
                Unit - Change ownership of TradeCenter 2216 <gen> to Player 2 (Blue) and Change color
                Unit - Change ownership of Town 2199 <gen> to Player 9 (Gray) and Change color
                Unit - Change ownership of Town 2304 <gen> to Player 4 (Purple) and Change color
                Unit - Change ownership of City 0019 <gen> to Player 9 (Gray) and Change color
                Unit - Change ownership of City 2303 <gen> to Player 2 (Blue) and Change color
                Unit - Change ownership of City 2301 <gen> to Player 2 (Blue) and Change color
                Unit - Change ownership of City 2302 <gen> to Player 2 (Blue) and Change color
                Unit - Change ownership of City 0069 <gen> to Player 4 (Purple) and Change color
                Unit - Change ownership of City 0070 <gen> to Player 4 (Purple) and Change color
                Unit - Change ownership of Town 0075 <gen> to Player 4 (Purple) and Change color
                Unit - Kill Destroyer 1994 <gen>
                Unit - Kill Battleship 1993 <gen>
                Unit - Kill Destroyer 1995 <gen>
                Unit - Kill Destroyer 1996 <gen>
                Unit - Kill Battleship 1998 <gen>
                Game - Display to (All players) for 15.00 seconds the text: ROBIE KUPE
                Unit - Kill Destroyer 1997 <gen>
                Custom script:   set bj_wantDestroyGroup = true
                Unit Group - Pick every unit in (Units in kongo dla teala <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 3 (Teal) and Change color)
                Player Group - Pick every player in Kathilich and do (Player - Make (Picked player) treat Player 2 (Blue) as an Enemy)
                Player Group - Pick every player in Kathilich and do (Player - Make Player 2 (Blue) treat (Picked player) as an Enemy)
                Player Group - Add Player 2 (Blue) to Musulm
                Player Group - Remove Player 2 (Blue) from Kathilich
                Player Group - Pick every player in Musulm and do (Player - Make (Picked player) treat Player 2 (Blue) as an Ally with shared vision)
                Player Group - Pick every player in Musulm and do (Player - Make Player 2 (Blue) treat (Picked player) as an Ally with shared vision)
                Trigger - Turn on inc paryz <gen>
                Trigger - Turn on bonus vichy <gen>
                Trigger - Run Italy joins the war <gen> (checking conditions)
                Trigger - Turn off (This trigger)
                Trigger - Turn off fr allies <gen>
            Else - Actions
                Do nothing
 
Level 11
Joined
Jul 17, 2013
Messages
544
Code:
fr allies
    Events
        Player - Player 2 (Blue) types a chat message containing -join allies as An exact match
    Conditions
    Actions
        Trigger - Turn off Paris captured <gen>
        Game - Display to (All players) for 15.00 seconds the text: France has decided ...
        Unit - Kill Edouard Daladier 1319 <gen>
        Game - Display to (All players) for 15.00 seconds the text: Paris is captured a...
        Unit - Change ownership of Town 0146 <gen> to Player 9 (Gray) and Change color
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units in vichy2 <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 6 (Orange) and Change color)
        Unit - Change ownership of City 3614 <gen> to Player 9 (Gray) and Change color
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units in vichy3 <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 6 (Orange) and Change color)
        Unit - Change ownership of City 0016 <gen> to Player 9 (Gray) and Change color
        Unit - Change ownership of City 0017 <gen> to Player 9 (Gray) and Change color
        Unit - Change ownership of Town 0011 <gen> to Player 9 (Gray) and Change color
        Unit - Change ownership of Shipyard 3891 <gen> to Player 9 (Gray) and Change color
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units in vichy4 <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 6 (Orange) and Change color)
        Player - Make Player 6 (Orange) treat Player 9 (Gray) as an Ally with shared vision
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units in vichy5 <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 6 (Orange) and Change color)
        Player - Make Player 9 (Gray) treat Player 6 (Orange) as an Ally with shared vision
        Player - Make Player 9 (Gray) treat Player 12 (Brown) as an Ally with shared vision
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units in do vichy <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 6 (Orange) and Change color)
        Player - Make Player 12 (Brown) treat Player 9 (Gray) as an Ally with shared vision
        Unit - Change ownership of Town 0014 <gen> to Player 9 (Gray) and Change color
        Unit - Change ownership of TradePort 1569 <gen> to Player 9 (Gray) and Change color
        Unit - Change ownership of Town 0015 <gen> to Player 9 (Gray) and Change color
        Unit - Change ownership of Town 0018 <gen> to Player 9 (Gray) and Change color
        Unit - Change ownership of TradeCenter 2282 <gen> to Player 9 (Gray) and Change color
        Unit - Change ownership of Town 2199 <gen> to Player 9 (Gray) and Change color
        Unit - Change ownership of Town 2304 <gen> to Player 4 (Purple) and Change color
        Unit - Change ownership of City 0019 <gen> to Player 9 (Gray) and Change color
        Unit - Change ownership of City 0069 <gen> to Player 4 (Purple) and Change color
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units in magonit <gen> owned by Player 2 (Blue)) and do (Unit - Change ownership of (Picked unit) to Player 9 (Gray) and Change color)
        Unit - Change ownership of City 0070 <gen> to Player 4 (Purple) and Change color
        Unit - Change ownership of Town 0075 <gen> to Player 4 (Purple) and Change color
        Unit - Change ownership of Town 0068 <gen> to Player 6 (Orange) and Change color
        Unit - Change ownership of Destroyer 1994 <gen> to Player 6 (Orange) and Change color
        Unit - Change ownership of Battleship 1993 <gen> to Player 6 (Orange) and Change color
        Unit - Change ownership of Destroyer 1995 <gen> to Player 6 (Orange) and Change color
        Unit - Change ownership of Destroyer 1996 <gen> to Player 6 (Orange) and Change color
        Unit - Change ownership of Battleship 1998 <gen> to Player 6 (Orange) and Change color
        Unit - Change ownership of Destroyer 1997 <gen> to Player 6 (Orange) and Change color
        Player - Make Player 2 (Blue) treat Player 6 (Orange) as an Enemy
        Player - Make Player 6 (Orange) treat Player 2 (Blue) as an Enemy
        Player - Make Player 4 (Purple) treat Player 6 (Orange) as an Ally with shared vision
        Player - Make Player 6 (Orange) treat Player 4 (Purple) as an Ally with shared vision
        Trigger - Turn on inc paryz <gen>
        Trigger - Turn on bonus vichy <gen>
        Trigger - Run Italy joins the war <gen> (checking conditions)
        Trigger - Turn off fr allies <gen>
        Trigger - Turn off (This trigger)
 
Status
Not open for further replies.
Top