1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Ride into the sunset with the 32nd Modeling Contest.
    Dismiss Notice
  4. This adventure has come to an end. Congratulate our heroes in the 16th Mini Mapping Contest Results.
    Dismiss Notice
  5. From the gates of hell, the 5th Special Effect Contest Results have emerged.
    Dismiss Notice
  6. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Why my other AI allies still attacking me?

Discussion in 'Triggers & Scripts' started by yvanj2000, Mar 21, 2011.

  1. yvanj2000

    yvanj2000

    Joined:
    Jan 21, 2011
    Messages:
    45
    Resources:
    0
    Resources:
    0
    :fp: i hope you understand my english,


    I have 8 players in my map

    [​IMG]

    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: Mar 22, 2011
  2. Ext3rmin4tor

    Ext3rmin4tor

    Joined:
    Aug 21, 2010
    Messages:
    17
    Resources:
    0
    Resources:
    0
    Are you sure the team alliance options are set correctely?
     
  3. yvanj2000

    yvanj2000

    Joined:
    Jan 21, 2011
    Messages:
    45
    Resources:
    0
    Resources:
    0
    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
     
  4. Happyhippo009

    Happyhippo009

    Joined:
    Dec 27, 2010
    Messages:
    20
    Resources:
    0
    Resources:
    0
    becease you have to set that you are an alli for them too ! once i made that mistake :D
     
  5. Ext3rmin4tor

    Ext3rmin4tor

    Joined:
    Aug 21, 2010
    Messages:
    17
    Resources:
    0
    Resources:
    0
    But if they are member of the same Force and the Force has the "Ally" box checked there shouldn't be any problem.
     
  6. Marc Mamales

    Marc Mamales

    Joined:
    Dec 26, 2010
    Messages:
    450
    Resources:
    1
    Spells:
    1
    Resources:
    1
    try to put when the duel ends
    • Player - Make (Picked player) treat (Player((Integer A))) as an Ally