• 🏆 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!

change owner

Status
Not open for further replies.
hello
im making a map but i need help for a trigger
at the middle of the map, there is 3 small circle of power and a big one
and in the corner of the map, there is 4 team of 3 player
when an unit of a team go on the big circle, all 3 small circle change owner and their owner are all player of the team ( a circle for P1 , one for P2 , one for P3)
I dont know how to use this trigger, HELP
 
Level 6
Joined
Oct 31, 2008
Messages
229
  • GT unit enters circle
    • Events
      • Unit - A unit comes within 256.00 of Circle of Power (large) 0003 <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to Player 1 (Red)
              • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
              • (Owner of (Triggering unit)) Equal to Player 3 (Teal)
        • Then - Actions
          • Set GV_pl[1] = Player 1 (Red)
          • Set GV_pl[2] = Player 2 (Blue)
          • Set GV_pl[3] = Player 3 (Teal)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to Player 4 (Purple)
              • (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
              • (Owner of (Triggering unit)) Equal to Player 6 (Orange)
        • Then - Actions
          • Set GV_pl[1] = Player 4 (Purple)
          • Set GV_pl[2] = Player 5 (Yellow)
          • Set GV_pl[3] = Player 6 (Orange)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to Player 7 (Green)
              • (Owner of (Triggering unit)) Equal to Player 8 (Pink)
              • (Owner of (Triggering unit)) Equal to Player 9 (Gray)
        • Then - Actions
          • Set GV_pl[1] = Player 7 (Green)
          • Set GV_pl[2] = Player 8 (Pink)
          • Set GV_pl[3] = Player 9 (Gray)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
              • (Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
              • (Owner of (Triggering unit)) Equal to Player 12 (Brown)
        • Then - Actions
          • Set GV_pl[1] = Player 10 (Light Blue)
          • Set GV_pl[2] = Player 11 (Dark Green)
          • Set GV_pl[3] = Player 12 (Brown)
        • Else - Actions
      • Unit - Change ownership of Circle of Power 0000 <gen> to GV_pl[1] and Change color
      • Unit - Change ownership of Circle of Power 0001 <gen> to GV_pl[2] and Change color
      • Unit - Change ownership of Circle of Power 0002 <gen> to GV_pl[3] and Change color
Thats the best way. Remember to change the units you want to change owner and also You need a 3 array variable of players category named GV_pl

The best way to thank the ones that help you is to add reputation
 
Status
Not open for further replies.
Top