Thanks Brian.
I didn't get an error from compiler this time.
Either I click on yes and no buttons, i got "you clicked yes".
Here the code:
(instance RoomScript of Script
(properties)
(method (handleEvent pEvent)
// right after your method declaration
(var button)
(super:handleEvent(pEvent))
/*****************************************
* Handle the possible said phrases here *
*****************************************/
(if(Said('look'))
== button
Print("You are in an empty room")
Print(
"Do you want to click Yes or No?"
#title "Click What?"
#font LARGE_FONT
#icon 0 0 0
#button " Yes " 1
#button " No " 0
)
(if(== button 1)
Print("You clicked YES")
)(else
Print("You clicked NO")
)
)
)
)
Robin Gravel