Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Keypad plotscript

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Onlyoneinall
Bug finder




Joined: 16 Jul 2005
Posts: 746

PostPosted: Wed Sep 27, 2006 10:38 pm    Post subject: Keypad plotscript Reply with quote

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
View user's profile Send private message Send e-mail
msw188




Joined: 02 Jul 2003
Posts: 1041

PostPosted: Thu Sep 28, 2006 9:20 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group