View previous topic :: View next topic |
Author |
Message |
Onlyoneinall Bug finder
Joined: 16 Jul 2005 Posts: 746
|
Posted: Wed Sep 27, 2006 10:38 pm Post subject: Keypad plotscript |
|
|
I'm trying to do a plotscript which would involve you using your mouse/keyboard to push in several numbers to continue onward. The question here is mainly how do I go about doing it? I know I have to suspend obstruction, but how do I make it so that the key is pressed will activate the NPC that your hero is standing over (the key) so that it seems normal? I'm basically going for the same puzzle as the one in Missing. How do I pull it off? _________________ http://www.castleparadox.com/gamelist-display.php?game=750 Bloodlust Demo 1.00
 |
|
Back to top |
|
 |
msw188
Joined: 02 Jul 2003 Posts: 1041
|
Posted: Thu Sep 28, 2006 9:20 am Post subject: |
|
|
If you're using the hero, you could get rid of the suspend obstruction and make the NPCs step-on NPCs. Each of these would activate a script that changes the value of a global variable (I'll call it VAR for now) to the value of the number that they indicate. Then an on-keypress script would be something like:
[pseudocode - not incorrect format]
if(keyispressed==spacebar),then,begin
#do whatever needs to be done with VAR
end
I've never used the mouse, so I can't help you there. |
|
Back to top |
|
 |
|