I've got several questions... Ok, this might look tedious, but I promise you, the codes are simple to understand and I'm doing my best to make you understand so you can help me
Firstly, how do you set flags?
Secondly, there are going to be a number of levels which the user will get up to in order to reach the state so, simply said... will this work? --> EXAMPLE: if(message == "plugged" && second_input_flag && third_input_flag && fourth_input_flag ... and maybe about 3 more???) Will this work?
Third, if I want to display the data which the user has inserted, can I do the following?
EXAMPLE: User is in the last state (in this eg, we'll take 3 levels)
//First Stage---------------------------------------------------------------------
//Listen to user input keystroke...
listen(integer channel, string name, key id, string message)
if(message == "plugged"

{
first_input_flag //I still don't know how to initiate a first_input_flag
llSay (0, "Your TV is plugged."

}
else
{
llSay (0, " Hang on, you haven't inserted the correct command or you're not in the right stage yet."

}
//Second Stage, PROVIDED they have passed through 1st Stage----------------------------------------------------------------
if(message == "switched on" && first_input_flag)
{
second_input_flag
llSay (0, "Well done, so you've already plugged and switched on your TV! Let's configure it next."

}
else
{
llSay (0, " Hang on, you haven't inserted the correct command or you're not in the right stage yet."

}
//Third Stage, PROVIDED they have completed 2nd Stage------------------------------------------------------------------
if(message == "configuration terminal" && second_input_flag)
{
third_input_flag
llSay (0, "Ok, you are now in configuration mode, please type in XXXXX to config."

}
else
{
llSay (0, " Hang on, you haven't inserted the correct command or you're not in the right stage yet."

}
//My 3rd question-----------------------------------------------------
if(message == "show version"

{
llSay (0, "The following data are the version of TV you have and the configuration you've made: \n"

llSay (0, "Type: " <--- This is where I get confused, i can simply type-in: "Type: Toshiba/SONY, etc..." which is unchangeable data "FIXED" but I want it to display whatever the user has inserted (which is user-variable), how do I do that?
Therefore, when user inputs "show version", it will whisper/say.... whatever parameters they have introduced, of course there will be restrictions like some inputs MUST be integers, or strings.. If you don't get what I mean... EXAMPLE:
Type: (this input must be a mix between words and numbers, maybe a string will do) Toshiba X31512
2-Quad-Processor: (This input must be simply numbers => integer) 4
That's what I mean...
Thank you all for your time and help, I really appreciate all inputs.
Regards,
Prano