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

running plotscript

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
gagekilmer
Ninja... nuff said




Joined: 09 Jan 2013
Posts: 53

PostPosted: Mon Mar 04, 2013 4:49 pm    Post subject: running plotscript Reply with quote

so im trying to make the character run, this is the script I am using

include, plotscr.hsd
include, scancode.hsi

plotscript, on keypress handler, begin
if(hero is walking(me) == false) then(
set hero speed(me, 2)
if(key is pressed(key:Shift)) then(
set hero speed(me, 4)
)
)
end

but whenever I run it, my character runs with the z key and at speed 10 not 4. those were the original parameters when I put it in the text file but I changed them before I compiled them
Back to top
View user's profile Send private message Send e-mail
Gizmog1
Don't Lurk In The Bushes!




Joined: 05 Mar 2003
Posts: 2257
Location: Lurking In The Bushes!

PostPosted: Mon Mar 04, 2013 11:36 pm    Post subject: Reply with quote

Check and make sure you don't have a .txt and a .hss lying around. The last time I had this problem, it was because I had renamed my .txt to .hss so I could compile it from within the editor, and later kept editing the .txt.

And make sure you're actually saving the game! I've also screwed that up a lot.
Back to top
View user's profile Send private message Send e-mail AIM Address
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