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 havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. 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.

Hi , what's wrong with my Trigger

Discussion in 'Triggers & Scripts' started by o2bryan, Jan 18, 2012.

  1. overcold_ice

    overcold_ice

    Joined:
    Apr 30, 2011
    Messages:
    356
    Resources:
    0
    Resources:
    0
    what you need to fix:
    1. your other triggers, especially ones that runs on Map Initialization
    2. that trigger should be like this . . .

    • Game
      • Events
        • Unit - A unit owned by Player 2 (Blue) Dies
      • Conditions
      • Actions
        • Set Count = 0
        • Set Unit[4] = Villager1
        • Set Unit[5] = Villager2
        • Set Unit[6] = Villager3
        • Set Unit[7] = Villager4
        • Set Unit[8] = Villager5
        • Set Unit[9] = Villager6
        • Set Unit[10] = Villager7
        • Set Unit[11] = Villager8
        • Set Unit[12] = Villager9
        • Set Unit[13] = Villager10
        • Set Unit[14] = Villager11
        • Set Unit[15] = Villager12
        • Set Unit[16] = Villager13
        • Set Unit[17] = Villager14
        • Set Unit[18] = Villager15
        • Set Unit[19] = King Of Villager
        • For each (Integer A) from 4 to 19, do (Actions)
          • Loop - Actions
            • Custom script: set bj_wantDestroyGroup = true
            • Unit Group - Pick every unit in (Units owned by Player 2 (Blue) matching (((Unit-type of (Matching unit)) Equal to Unit[(Integer A)]) and (((Matching unit) is alive) Equal to True))) and do (Actions)
              • Loop - Actions
                • Set Count = (Count + 1)
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Count Equal to 0
          • Then - Actions
            • Game - Display to (All players) the text: Capella Called Game
            • Wait 2.00 seconds
            • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
            • Game - Defeat Player 4 (Purple) with the message: Defeat!
          • Else - Actions
     
  2. o2bryan

    o2bryan

    Joined:
    Mar 9, 2009
    Messages:
    173
    Resources:
    0
    Resources:
    0
    Still have bug , just play 1minute then Victory already - -.
    I thought is wait All the villagerX and King Of Villager all die then victory .??
     
  3. overcold_ice

    overcold_ice

    Joined:
    Apr 30, 2011
    Messages:
    356
    Resources:
    0
    Resources:
    0
    please explain the way you win . . . .
    and have you tried that new trigger . . . ?
     
  4. o2bryan

    o2bryan

    Joined:
    Mar 9, 2009
    Messages:
    173
    Resources:
    0
    Resources:
    0
    Oh so sorry , i forget see the line :
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    Count Equal to 0
    Then - Actions
    Game - Display to (All players) the text: Capella Called Game
    Wait 2.00 seconds
    Game - Victory Player 1 (Red) (Show dialogs, Show scores)
    Game - Defeat Player 4 (Purple) with the message: Defeat!
    Else - Actions
     
  5. o2bryan

    o2bryan

    Joined:
    Mar 9, 2009
    Messages:
    173
    Resources:
    0
    Resources:
    0
    Thanks @overlord and @Mr Bean very muchy !
     
  6. overcold_ice

    overcold_ice

    Joined:
    Apr 30, 2011
    Messages:
    356
    Resources:
    0
    Resources:
    0
    solved then . . . .
    no more bugs?
    you want to request more triggers?
     
  7. o2bryan

    o2bryan

    Joined:
    Mar 9, 2009
    Messages:
    173
    Resources:
    0
    Resources:
    0
    @overcold , erm wait If I need help I will post thread at here hehe ^__^. Thanks ya