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
- Loop - Actions
- 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)
- Loop - Actions
- Multiboard - Show (Last created multiboard)
- Events
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)))]))
- Events