If you are looking for a menu type thing, I might be able to start you off:
First: When the player does something, set off a timeout with "timeout = .05;"
Next you want to check for keydowns and such, ex: up = 0, left = 1, down = 2, right = 3. Sideways, Up/down...anything that bursts your bubble.
NPC Code:
if (timeout) {
if (keydown(0)) {
this.choose--; // Menu Chooser Up
}
if (keydown(2)) {
this.choose++; // Menu Chooser Down
}
timeout = .05; // Continue the loop.
}
Then you want to display stuff, which would be showimg (check commands.rtf for syntax.
Then after that, the selector...check commands.rtf under keydown() for the numbers for other keys besudes up/down/left/right.
I probably said a little too much for my liking... :-/
Gohan