client
command_text="say "
verb/chatbutton()
command_text="[lowertext(winget(src,"default.chatbutton","text"))] "
verb/changebutton()
switch(winget(src,"default.chatbutton","text"))
if("OOC") winset(src,"default.chatbutton","text='Say'")
if("Say") winset(src,"default.chatbutton","text='Whisper'")
if("Whisper") winset(src,"default.chatbutton","text='Me'")
if("Me") winset(src,"default.chatbutton","text='LOOC'")
if("LOOC") winset(src,"default.chatbutton","text='OOC'")
Problem description:
I am making a chat system with 2 buttons, 1 for changing the main chatverb and the other for putting that chatverb in the input. The problem is that the text of the input is only changed for the first time I run the chatbutton verb and the following ones are completely ignored.