guessedletter
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
enteredletter Equal to (Substring(selectedword, 1, 1))
enteredletter Equal to (Substring(selectedword, 2, 2))
enteredletter Equal to (Substring(selectedword, 3, 3))
enteredletter Equal to (Substring(selectedword, 4, 4))
enteredletter Equal to (Substring(selectedword, 5, 5))
enteredletter Equal to (Substring(selectedword, 6, 6))
enteredletter Equal to (Substring(selectedword, 7, 7))
enteredletter Equal to (Substring(selectedword, 8, 8))
enteredletter Equal to (Substring(selectedword, 9, 9))
enteredletter Equal to (Substring(selectedword, 10, 10))
Then - Actions
For each (Integer A) from 1 to (Length of selectedword), do (If (enteredletter Equal to (Substring(selectedword, (Integer A), (Integer A)))) then do (Set letters[((Integer A) - 1)] = enteredletter) else do (Do nothing))
Set recreatedword = (letters[0] + (letters[1] + (letters[2] + (letters[3] + (letters[4] + (letters[5] + (letters[6] + (letters[7] + (letters[8] + letters[9])))))))))
Set spacedcreated = ((letters[0] + ) + ((letters[1] + ) + ((letters[2] + ) + ((letters[3] + ) + ((letters[4] + ) + ((letters[5] + ) + ((letters[6] + ) + ((letters[7] + ) + ((letters[8] + ) + (letters[9] + ))))))))))
Set spacedcreated = (String(spacedcreated) as Upper case)
Floating Text - Destroy (Last created floating text)
Floating Text - Create floating text that reads spacedcreated at (Center of text <gen>) with Z offset 0.00, using font size 22.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Game - Display to (All players) for 4.00 seconds the text: (The letter + (enteredletter + ( has been played. It's now + ((Name of (Triggering player)) + 's turn to guess a new letter.))))
Game - Display to (All players) for 2.00 seconds the text:
Game - Display to (All players) for 2.00 seconds the text:
Set enteredletter = (String(enteredletter) as Upper case)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
recreatedword Equal to selectedword
Then - Actions
Floating Text - Destroy (Last created floating text)
Set recreatedword = (((Substring(selectedword, 1, 1)) + ) + (((Substring(selectedword, 2, 2)) + ) + (((Substring(selectedword, 3, 3)) + ) + (((Substring(selectedword, 4, 4)) + ) + (((Substring(selectedword, 5, 5)) + ) + (((Substring(selectedword, 6, 6)) + ) + (((Substring(
Set recreatedword = (String(recreatedword) as Upper case)
Floating Text - Create floating text that reads recreatedword at (Center of text <gen>) with Z offset 0.00, using font size 22.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Set playerscore[(Player number of (Triggering player))] = (playerscore[(Player number of (Triggering player))] + 1)
Game - Display to (All players) for 4.00 seconds the text: ((Name of (Triggering player)) + won this round, next word coming in 5 seconds.)
Player Group - Pick every player in (All players) and do (Leaderboard - Change the value for (Picked player) in (Last created leaderboard) to playerscore[(Player number of (Picked player))])
Wait 5.00 seconds
Floating Text - Destroy (Last created floating text)
Trigger - Run randselect <gen> (checking conditions)
Else - Actions
Do nothing
Else - Actions
Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to (Position of camunit) over 1.00 seconds)
Wait 1.50 seconds
Player Group - Pick every player in (All players) and do (Camera - Lock camera target for (Picked player) to camunit, offset by (0.00, 0.00) using Default rotation)
For each (Integer A) from 1 to 5, do (Unit - Order (Random unit from (Units in regions[(Integer A)])) to Move To (Center of regions[((Integer A) + 1)]))
AI - Ignore camunit's guard position
Wait 3.00 seconds
Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to (Position of Archer 0010 <gen>) over 1.00 seconds)
Wait 1.00 seconds
Player Group - Pick every player in (All players) and do (Camera - Lock camera target for (Picked player) to Archer 0010 <gen>, offset by (0.00, 0.00) using Default rotation)