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

How to make 2 teams unable to attack each other, without making them allies?

Status
Not open for further replies.
Level 9
Joined
Jun 5, 2011
Messages
788
The thing is basically simple... we have team 1,2 and 3.
I want for a certain period that team 1 and 2 cannot attack each other, nor cast spells, etc. This must happen without making them actually allies.

I tried by using a trigger that made the alliance between them Neutral but they can still talk in 'Allies' Chat and they can see each other's pings...
  • For each (Integer B) from 1 to 5, do (Actions)
    • Loop - Actions
      • Player Group - Pick every player in team2 and do (Actions)
        • Loop - Actions
          • Player - Make (Player((Integer B))) treat (Picked player) as an Neutral
          • Player - Make (Picked player) treat (Player((Integer B))) as an Neutral
EDIT: A bit more info: Basically team 1 are players from 1 to 5, and team 2 are players from 6 to 10. This is why i picked the players in that manner... But the problem is that even though they won't attack each other, they can see their messages in 'Allies' Chat and pings made by the other team. Is there a way to disable that?


Does anyone have any ideas?

Thanks anticipated!
 
Last edited:
Level 11
Joined
Nov 15, 2007
Messages
781
  • Stop
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
                  • (Owner of (Target unit of issued order)) Equal to Player 1 (Red)
              • And - All (Conditions) are true
                • Conditions
                  • (Owner of (Triggering unit)) Equal to Player 1 (Red)
                  • (Owner of (Target unit of issued order)) Equal to Player 2 (Blue)
        • Then - Actions
          • Unit - Order (Triggering unit) to Stop
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Owner of (Triggering unit)) Equal to Player 1 (Red)
                  • (Owner of (Attacking unit)) Equal to Player 2 (Blue)
              • And - All (Conditions) are true
                • Conditions
                  • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
                  • (Owner of (Attacking unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Unit - Order (Attacking unit) to Stop
        • Else - Actions
They will still run at eachother and try to attack if they're ordered to attack-move or are in acquisition range, unfortunately.
 
Level 9
Joined
Jun 5, 2011
Messages
788
  • Stop
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
                  • (Owner of (Target unit of issued order)) Equal to Player 1 (Red)
              • And - All (Conditions) are true
                • Conditions
                  • (Owner of (Triggering unit)) Equal to Player 1 (Red)
                  • (Owner of (Target unit of issued order)) Equal to Player 2 (Blue)
        • Then - Actions
          • Unit - Order (Triggering unit) to Stop
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Owner of (Triggering unit)) Equal to Player 1 (Red)
                  • (Owner of (Attacking unit)) Equal to Player 2 (Blue)
              • And - All (Conditions) are true
                • Conditions
                  • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
                  • (Owner of (Attacking unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Unit - Order (Attacking unit) to Stop
        • Else - Actions
They will still run at eachother and try to attack if they're ordered to attack-move or are in acquisition range, unfortunately.

A very interesting idea... i will try it.

@Search2Destroy, your idea would affect the total ability to attack or cast spells... i want it to happen only i case of battle between team 1 and 2.
 
Status
Not open for further replies.
Top