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

Key Press Script

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




Joined: 05 Mar 2003
Posts: 21

PostPosted: Mon Apr 07, 2003 9:03 am    Post subject: Key Press Script Reply with quote

Quote:
script,bla bla,begin
if,begin
key is pressed (key:X)
end
then,begin
if (hero is walking (me)==false)
then,begin
set hero speed (me,2)
set tag (9,on)
end
end
else,begin
if (hero is walking (me)==false)
then,begin
set hero speed (me,4)
set tag (9,off)
end
script,Sneak,begin
if,begin
key is pressed (key:C)
end
then,begin
if (hero is walking (me)==false)
then,begin
set hero speed (me,10)
set tag (10,on)
end
end
else,begin
if (hero is walking (me)==false)
then,begin
set hero speed (me,4)
set tag (10,off)
end
end
end

When the script is run on the map when you press 'X' everything works but when you press 'C' Nothing happens. What do I need to change so both keypress commands work?
Back to top
View user's profile Send private message Send e-mail
Cube
Dimensional Traveller




Joined: 02 Feb 2003
Posts: 294

PostPosted: Mon Apr 07, 2003 4:58 pm    Post subject: Reply with quote

I'm on a crappy school computer with a very low resolution, so reading your script is kinda hard Oookay.... However, I believe it's not working because the two key pressing checking thingies aren't in the same script.

I mean, you can only give a map one script per map for the on key press thing. So basically you only have the script "bla bla" doing stuff, and the script Sneak is doing absolutely nothing. Just merge them together, or make one of them a autoscript that is called from one another.
Back to top
View user's profile Send private message
Uncommon
His legend will never die




Joined: 10 Mar 2003
Posts: 2503

PostPosted: Mon Apr 07, 2003 7:26 pm    Post subject: Reply with quote

Yep.

Out of curiosity, why in the heck do you go faster in the "Sneak" script? Wouldn't one walk slower when sneaking? It's all semantics, but I am considerably anal-retentive. This bothers me, as one should walk at a speed of 2 to sneak (as "bla bla" displays), and at a speed of 10 to run ("Sneak"). Did you name the script like that just to bother people like me?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
NeoRicen




Joined: 05 Mar 2003
Posts: 21

PostPosted: Tue Apr 08, 2003 7:46 am    Post subject: Reply with quote

The Lone Chimaera wrote:
Yep.

Out of curiosity, why in the heck do you go faster in the "Sneak" script? Wouldn't one walk slower when sneaking? It's all semantics, but I am considerably anal-retentive. This bothers me, as one should walk at a speed of 2 to sneak (as "bla bla" displays), and at a speed of 10 to run ("Sneak"). Did you name the script like that just to bother people like me?

The sneak thing isnt meant to be there, I accidently pasted it there and screw you does it even matter what the script is called...NO! Why do you care? You shouldn't.
Back to top
View user's profile Send private message Send e-mail
Blazes Battles Inc.
I'm a chimp, not a




Joined: 25 Jan 2003
Posts: 505

PostPosted: Tue Apr 08, 2003 1:35 pm    Post subject: Reply with quote

Looks like someone's had a bad day...
_________________
Preserve OHR history! Do it for the children!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Guest







PostPosted: Wed Apr 09, 2003 1:08 am    Post subject: Reply with quote

Forget what I said, Blazes is right, i was having a bad day
Back to top
Uncommon
His legend will never die




Joined: 10 Mar 2003
Posts: 2503

PostPosted: Wed Apr 09, 2003 1:57 am    Post subject: Reply with quote

Shrug, I'm anal-retentive. All is forgiven.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Guest







PostPosted: Wed Apr 09, 2003 9:41 am    Post subject: Reply with quote

Thats good then...
Back to top
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