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

Linking things together

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
RedMaverickZero
Three pointed, red disaster!
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 12 Jul 2003
Posts: 1459

PostPosted: Mon Mar 07, 2005 1:11 pm    Post subject: Linking things together Reply with quote

I'm trying to link these commands together, so you have to press A and then wait for that, then press B. But whenever I playtest this stuff, all it does is simply nothing. I don't get it. What am I doing wrong?

set NPC direction (4,south)
wait (2)
if(keyispressed(Key:A)) then(
alter NPC (4,NPCstat:Palette,0)
alter NPC (3,NPCstat:Picture,41)
wait (2)
set NPC direction (3,south)
wait (2)
set NPC direction (3,west)
wait (2)
set NPC direction (3,south)
wait (2)
set NPC direction (3,west)
wait (2)
set NPC direction (3,south)
wait (2)
set NPC direction (3,west)
wait (2)
set NPC direction (3,north)
wait (5)
set NPC direction (3,east)
set NPC direction (2,west)
wait (10)
set NPC direction (3,south)
alter NPC (3,NPCstat:Picture,31)
set NPC direction (2,south)
wait (1)
alter NPC (4,NPCstat:Palette,21)
wait (1)
set NPC direction (4,west)
wait (2)
)
then(
#B
if(keyispressed(Key:B)) then(
alter NPC (4,NPCstat:Palette,0)
alter NPC (3,NPCstat:Picture,41)
wait (2)
set NPC direction (3,south)
wait (2)
set NPC direction (3,west)
wait (2)
set NPC direction (3,south)
wait (2)
set NPC direction (3,west)
wait (2)
set NPC direction (3,south)
wait (2)
set NPC direction (3,west)
wait (2)
set NPC direction (3,north)
wait (5)
set NPC direction (3,east)
set NPC direction (2,west)
wait (10)
set NPC direction (3,south)
alter NPC (3,NPCstat:Picture,31)
set NPC direction (2,south)
wait (1)
alter NPC (4,NPCstat:Palette,21)
wait (1)
set NPC direction (4,east)
wait (2)
))
_________________
---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70%
Back to top
View user's profile Send private message Send e-mail AIM Address
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Mon Mar 07, 2005 2:13 pm    Post subject: Reply with quote

It doesn't wait for you to press the keys. If you happen to be holding them down when the script executes, things should happen.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
Sephyroth
Renegade Rebel Redmage
Class A Minstrel



Joined: 04 Feb 2003
Posts: 644
Location: Schmocation

PostPosted: Mon Mar 07, 2005 2:33 pm    Post subject: Reply with quote

Try something like this instead:

Code:
while(keyispressed(key:a)==false) do(wait(1))

_________________
im realy ded Sad...
Back to top
View user's profile Send private message Send e-mail AIM Address
RedMaverickZero
Three pointed, red disaster!
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 12 Jul 2003
Posts: 1459

PostPosted: Mon Mar 07, 2005 4:55 pm    Post subject: Reply with quote

It worked like a charm. Thanks!
_________________
---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70%
Back to top
View user's profile Send private message Send e-mail AIM Address
Raekuul
Delicious!




Joined: 31 Mar 2004
Posts: 641
Location: Nowhere

PostPosted: Tue Mar 08, 2005 7:08 am    Post subject: Reply with quote

Wait a second... what exactly was supposed to happen?
_________________
A broken clock is still right twice a day.
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