hahahafuccoff
Member
- Joined
- Jun 6, 2018
- Messages
- 16
- Reaction score
- 0
I need help with SF Dialogs again :iknowwhatyoudidthere:
How can i set a variable if is typed in editboxes a command ?
Example:
Dialog.AddEditBox(1@, 1, "Type something", 33, 35, 195, 40)
Dialog.AddButton(1@, 3, "Send", 56, 86, 155, 40)
When i am clicking the button 3 Send, i want to be checked what is in editbox, like if in editbox is "shit" to close the dialog permanently (can't be opened again) and open another one, if is not, like "word", "other shit" "asafasfsafagasg", to chatmsg " Wrong text 1/3" , "Wrong text 2/3" and "Wrong text 3/3", at 3/3 to stop cleo. I mean if i type "word" in editbox then press the buton, to chatmsg "Wrong text 1/3", if i press again to show "wrong text 2/3" and if i press again "wrong text 3/3", close dialogs and stop the cleo mod.
If you don't understand what i tried to do, is ok, I learned English in Uganda (jk)
Well i know this:
0B81: dialog 1@ pop_event_to 2@ control_id_to 3@
IF 3@ == 3
THEN
//something
END
But i don't know the rest, it's second time when i work with sf dialogs and i didn't use editbox before....
How can i set a variable if is typed in editboxes a command ?
Example:
Dialog.AddEditBox(1@, 1, "Type something", 33, 35, 195, 40)
Dialog.AddButton(1@, 3, "Send", 56, 86, 155, 40)
When i am clicking the button 3 Send, i want to be checked what is in editbox, like if in editbox is "shit" to close the dialog permanently (can't be opened again) and open another one, if is not, like "word", "other shit" "asafasfsafagasg", to chatmsg " Wrong text 1/3" , "Wrong text 2/3" and "Wrong text 3/3", at 3/3 to stop cleo. I mean if i type "word" in editbox then press the buton, to chatmsg "Wrong text 1/3", if i press again to show "wrong text 2/3" and if i press again "wrong text 3/3", close dialogs and stop the cleo mod.
If you don't understand what i tried to do, is ok, I learned English in Uganda (jk)
Well i know this:
0B81: dialog 1@ pop_event_to 2@ control_id_to 3@
IF 3@ == 3
THEN
//something
END
But i don't know the rest, it's second time when i work with sf dialogs and i didn't use editbox before....