#chat game skript doesnt work

1 messages · Page 1 of 1 (latest)

cobalt vine
#

_winner isnt changing so it just doesnt work

#
every 4 minutes:
    set {_winner} to false
    send "&aYou have 1 minute to unscramble this word!: &cbouxnYg0b" to all players
    set {_word} to "YoungB0x"
    wait 60 seconds
    if {_winner} is false:
        send "&aTime's up! Nobody won." to all players
        wait 1 second
        send "&aThe word was 'YoungB0x'. Try again next time." to all players
on chat:
    if {_winner} is false:
        if message contains "YoungB0x":
            set {_winner} to true
            send "&c%player% &aWon! The word was YoungB0x" to all players
#

idk why it doesnt change the _winner

gusty lark
#

local variable

gloomy glacier
#

local variables are local, and cannot be brought across structures