Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variable - Set Timer Window = (Last created timer window)
- Timer - Create a timer window for Timer, with the title "Vote Time Remaining", using Remaining time (initially Visible)
- Timer - Start Timer as a One Shot timer that will expire in 15.0 Game Time seconds
- Variable - Set Timer = (Last started timer)
- Dialog - Create a Modal dialog of size (300, 200) at (-150, 100) relative to Center of screen
- Variable - Set Dialog = (Last created dialog)
- Dialog - Create a button for dialog Dialog with the dimensions (200, 50) anchored to Top Left with an offset of (25, 25) setting the tooltip to "" with button text "FFA" and the hover image set to ""
- Variable - Set FFA = (Last created dialog item)
- Dialog - Create a button for dialog Dialog with the dimensions (200, 50) anchored to Top Left with an offset of (25, 75) setting the tooltip to "" with button text "4x4" and the hover image set to ""
- Variable - Set 4x4 = (Last created dialog item)
- Dialog - Create a button for dialog Dialog with the dimensions (200, 50) anchored to Top Left with an offset of (25, 125) setting the tooltip to "" with button text "2x2x2x2" and the hover image set to ""
- Variable - Set 2x2x2x2 = (Last created dialog item)
- Dialog - Create a label for dialog Dialog with the dimensions (200, 50) anchored to Top Left with an offset of (250, 30) with the text "" color set to White text writeout set to False with a writeout duration of 2.0
- Variable - Set Label_ffa = (Last created dialog item)
- Dialog - Create a label for dialog Dialog with the dimensions (200, 50) anchored to Top Left with an offset of (250, 80) with the text "" color set to White text writeout set to False with a writeout duration of 2.0
- Variable - Set Label_4x4 = (Last created dialog item)
- Dialog - Create a label for dialog Dialog with the dimensions (200, 50) anchored to Top Left with an offset of (250, 130) with the text "" color set to White text writeout set to False with a writeout duration of 2.0
- Variable - Set Label_2x2x2x2 = (Last created dialog item)
- Dialog - Show Dialog for (All players)
- Trigger - Turn ButtonPressed On
- General - Wait 15.0 Game Time seconds
- General - For each integer i from 0 to 2 with increment 1, do (Actions)
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- Votes[i] > max
- Then
- Variable - Set max = Votes[i]
- Else
- General - Repeat (Actions) forever
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- Or
- Conditions
- And
- Conditions
- max == Votes[0]
- max != Votes[1]
- max != Votes[2]
- And
- Conditions
- max == Votes[1]
- max != Votes[0]
- max != Votes[2]
- And
- Conditions
- max == Votes[2]
- max != Votes[0]
- max != Votes[1]
- Then
- Trigger - Turn ButtonPressed Off
- General - Break
- Else
- General - Switch (Actions) depending on max
- Cases
- General - If (Votes[0])
- Actions
- Player - Make all players in (Active Players) treat each other as Enemy
- ------- SetMode => FFA
- General - If (Votes[1])
- Actions
- ------- SetMode => 4x4
- General - If (Votes[2])
- Actions
- ------- SetMode => 2x2x2x2
- Default
- Dialog - Destroy Dialog
- Timer - Destroy (Last created timer window)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement