Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-20-2002, 07:19 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
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
__________________
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.