if ask <You are allergic to the #@food#. Are you sure you want to eat it?> then {
msg <You were so allergic to the #@food# that you died.>
playerlose
}
else {
msg <You decide it would be wise not to eat the #@food#.
}In this example, I am using the room's properties to create the command. Open the room property window and go to the Misc tab.
Click Edit Custom Player Commands.
The Player Commands window pops up and you will click Add to type in the command that prompts the question. (e.g. eat food)
Further down will be an edit button. Click it.
In this new window that pops up, click the Add Conditional button.
In the 'IF' section, click Add.
The 4th option down is "The player answers 'yes' to a question".. click that.
To the right, you will have a space to write your question (e.g. You are allergic to #@food#. Are you sure you want to eat it?)
Click Ok and then click edit on the Then section.
In this window, add a message and add a lose game command. (which is after you "add command", it is under Finish the Game/Finish the Game by making the player lose)