Advertisement
Taintedwisp

Untitled

Apr 29th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. Variable - Set Timer Window = (Last created timer window)
  2. Timer - Create a timer window for Timer, with the title "Vote Time Remaining", using Remaining time (initially Visible)
  3. Timer - Start Timer as a One Shot timer that will expire in 15.0 Game Time seconds
  4. Variable - Set Timer = (Last started timer)
  5. Dialog - Create a Modal dialog of size (300, 200) at (-150, 100) relative to Center of screen
  6. Variable - Set Dialog = (Last created dialog)
  7. 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 ""
  8. Variable - Set FFA = (Last created dialog item)
  9. 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 ""
  10. Variable - Set 4x4 = (Last created dialog item)
  11. 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 ""
  12. Variable - Set 2x2x2x2 = (Last created dialog item)
  13. 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
  14. Variable - Set Label_ffa = (Last created dialog item)
  15. 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
  16. Variable - Set Label_4x4 = (Last created dialog item)
  17. 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
  18. Variable - Set Label_2x2x2x2 = (Last created dialog item)
  19. Dialog - Show Dialog for (All players)
  20. Trigger - Turn ButtonPressed On
  21. General - Wait 15.0 Game Time seconds
  22. General - For each integer i from 0 to 2 with increment 1, do (Actions)
  23. Actions
  24. General - If (Conditions) then do (Actions) else do (Actions)
  25. If
  26. Votes[i] > max
  27. Then
  28. Variable - Set max = Votes[i]
  29. Else
  30. General - Repeat (Actions) forever
  31. Actions
  32. General - If (Conditions) then do (Actions) else do (Actions)
  33. If
  34. Or
  35. Conditions
  36. And
  37. Conditions
  38. max == Votes[0]
  39. max != Votes[1]
  40. max != Votes[2]
  41. And
  42. Conditions
  43. max == Votes[1]
  44. max != Votes[0]
  45. max != Votes[2]
  46. And
  47. Conditions
  48. max == Votes[2]
  49. max != Votes[0]
  50. max != Votes[1]
  51. Then
  52. Trigger - Turn ButtonPressed Off
  53. General - Break
  54. Else
  55. General - Switch (Actions) depending on max
  56. Cases
  57. General - If (Votes[0])
  58. Actions
  59. Player - Make all players in (Active Players) treat each other as Enemy
  60. ------- SetMode => FFA
  61. General - If (Votes[1])
  62. Actions
  63.  
  64. ------- SetMode => 4x4
  65. General - If (Votes[2])
  66. Actions
  67.  
  68. ------- SetMode => 2x2x2x2
  69. Default
  70. Dialog - Destroy Dialog
  71. Timer - Destroy (Last created timer window)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement