Winning Trigger help..

Pantat

New Member
Reaction score
0
I want to make a trigger.. This trigger is make a player win the game.. Like if a player already kill 100 frogs.. Make this player Win and the others lose.. Can somebody create this trigger for me?? THX b4 !! This is my multi Board Trigger maybe this will help to help me..
Trigger:
  • Creater Multiboard
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Set Player_Count = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
      • Multiboard - Create a multiboard with 3 columns and (1 + Player_Count) rows, titled Frog Captured
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Player Name
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Frog Captured
      • For each (Integer A) from 1 to (1 + Player_Count), do (Actions)
        • Loop - Actions
          • Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 1, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 2, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the display style for (Last created multiboard) item in column 3, row (Integer A) to Show text and Hide icons
          • Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 2.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 8.00% of the total screen width
          • Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 5.00% of the total screen width
      • Set List = 2
      • Set Players = (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)))
      • Player Group - Pick every player in Players and do (Actions)
        • Loop - Actions
          • Set Multiboard_Spots[(Player number of (Picked player))] = List
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row List to PlayerNames[(Player number of (Picked player))]
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
          • Multiboard - Set the icon for (Last created multiboard) item in column 1, row List to ReplaceableTextures\CommandButtons\BTNVillagerMan1.blp
          • Set List = (List + 1)
      • Multiboard - Show (Last created multiboard)


Trigger:
  • Score
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Frog
      • ((Owner of (Killing unit)) controller) Equal to User
    • Actions
      • Set Killing_Count[(Player number of (Owner of (Killing unit)))] = (Killing_Count[(Player number of (Owner of (Killing unit)))] + 1)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row Multiboard_Spots[(Player number of (Owner of (Killing unit)))] to (String(Killing_Count[(Player number of (Owner of (Killing unit)))]))
 

canons200

New Member
Reaction score
50
in your score trigger, add if,then,else action

if killingcount(player number of owner of killing unit greater or equal = 100

then pick every player in all player matching matching player not equal to owner of killing and do action
defeat pick player

victory owner of killing

sorry for freehand
 

LurkerAspect

Now officially a Super Lurker
Reaction score
118
Like canons200 said, make an if/then/else action at the end of your score trigger, and check whether the triggering player's score is greater or equal to 100, then make him win, or run a trigger that performs whatever end game spectacles you want.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top