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

Why my other AI allies still attacking me?

Status
Not open for further replies.
Level 3
Joined
Jan 21, 2011
Messages
46
:fp: i hope you understand my english,


I have 8 players in my map

formatu.jpg


when PvP_Time3 expires, it will move in PvP area

now my problem is my AI allies still attacking me?


I already put this

  • ANTI attack team
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) is A Hero) Equal to True
      • ((Attacking unit) is A ground unit) Equal to True
      • ((Owner of (Attacking unit)) is an ally of (Owner of (Attacked unit))) Equal to True
    • Actions
      • Unit - Order (Attacking unit) to Stop


here's my trigger for pvp

  • TwovsTwotimerMODE
    • Events
      • Time - PvP_Time3 expires
    • Conditions
    • Actions
      • Trigger - Turn on FFAtimer <gen>
      • Unit - Pause all units
      • Wait 0.10 seconds
      • Unit - Unpause all units
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • For each (Integer A) from 1 to 4, do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Integer A) Not equal to (Player number of (Picked player))
                • Then - Actions
                  • Player - Make (Picked player) treat (Player((Integer A))) as an Enemy
                • Else - Actions
 
Last edited:
Level 3
Joined
Jan 21, 2011
Messages
46
yes i already checked it, it's wierd they can attack and cast spell on me like stormbolt but i cant cast spell to them because they are my allies. Zzz
 
Status
Not open for further replies.
Top