Hi,
There are some problems with your code, here are some tips:
- Use if (!textbox_exists()) { } to make sure the textbox code runs only once.
- With textbox_add_options, you are setting the options to appear with message 1. But the first message is 0, so change it to that.
- With textbox_change_message_according_option, you are trying to change the message 2 (in other words, third message). But with textbox_create you have set only one message/text, so it will not change anything.
So try changing these things, and see if it works then. I will try to improve the documentation of this.