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

Encumbrance Script

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
The Drizzle
Who is the Drizzle?




Joined: 12 Nov 2003
Posts: 432

PostPosted: Wed Aug 06, 2008 1:31 pm    Post subject: Encumbrance Script Reply with quote

I'm having a little trouble with this script.

Code:

script,weight check,begin

if (get hero stat (0,9,maximum stat) << 0)
then (set hero speed (0,0))

if (get hero stat (1,9,maximum stat) << 0)
then (set hero speed (1,0))

if (get hero stat (2,9,maximum stat) << 0)
then (set hero speed (2,0))

if (get hero stat (3,9,maximum stat) << 0)
then (set hero speed (3,0))

if (
get hero stat (0,9,maximum stat) >= 0,and,
get hero stat (1,9,maximum stat) >= 0,and,
get hero stat (2,9,maximum stat) >= 0,and,
get hero stat (3,9,maximum stat) >= 0)
then (set hero speed (0,4))

end


Everything seems to work fine unless the player tries to move when their speed is 0. If they do, the hero just walks in place nonstop and you can't access the main menu any more. Any help?
_________________
My name is...
The shake-zula, the mic rulah, the old schoola, you wanna trip? I'll bring it to yah...
Back to top
View user's profile Send private message AIM Address
msw188




Joined: 02 Jul 2003
Posts: 1041

PostPosted: Wed Aug 06, 2008 2:34 pm    Post subject: Reply with quote

Sounds like an engine bug to me. Just in case though, do you have any keypress scripts (I'm guessing this script is part of it, at least)? Or each step scripts? Or loops running around in the background, from a map autorun script perhaps? Any of this might be helpful in getting to the bottom of this...
_________________
My first completed OHR game, Tales of the New World:
http://castleparadox.com/gamelist-display.php?game=161

This website link is for my funk/rock band, Euphonic Brew:
www.euphonicbrew.com
Back to top
View user's profile Send private message Visit poster's website
The Drizzle
Who is the Drizzle?




Joined: 12 Nov 2003
Posts: 432

PostPosted: Wed Aug 06, 2008 2:37 pm    Post subject: Reply with quote

Nope. The only script running is the keypress script, which yes, this is a part of.
_________________
My name is...
The shake-zula, the mic rulah, the old schoola, you wanna trip? I'll bring it to yah...
Back to top
View user's profile Send private message AIM Address
TwinHamster
♫ Furious souls, burn eternally! ♫




Joined: 07 Mar 2004
Posts: 1352

PostPosted: Wed Aug 06, 2008 2:43 pm    Post subject: Reply with quote

Just tested this and it seems that setting your hero's speed to 0 will make him walk in place indefinitely. Neutral
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: Wed Aug 06, 2008 3:03 pm    Post subject: Reply with quote

Yeah, your hero needs to keep walking until he gets to his destination tile. Hero speed is not the way to do this.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
The Drizzle
Who is the Drizzle?




Joined: 12 Nov 2003
Posts: 432

PostPosted: Wed Aug 06, 2008 7:40 pm    Post subject: Reply with quote

So what would be the best way to do this?
_________________
My name is...
The shake-zula, the mic rulah, the old schoola, you wanna trip? I'll bring it to yah...
Back to top
View user's profile Send private message AIM Address
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Wed Aug 06, 2008 7:46 pm    Post subject: Reply with quote

'' . bug_title('665') . ''
Back to top
View user's profile Send private message Send e-mail Visit poster's website
The Drizzle
Who is the Drizzle?




Joined: 12 Nov 2003
Posts: 432

PostPosted: Wed Aug 06, 2008 7:57 pm    Post subject: Reply with quote

Thanks James.
_________________
My name is...
The shake-zula, the mic rulah, the old schoola, you wanna trip? I'll bring it to yah...
Back to top
View user's profile Send private message 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: Wed Aug 06, 2008 9:50 pm    Post subject: Reply with quote

Short of that, you'd want your keypress script to suspend player if he's overencumbered, but resume player if he's using the menu. It's a trickier script than it's worth, though, especially since your bug has become a Werewaffle blocker and should therefore be fixed within a couple of days.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
The Drizzle
Who is the Drizzle?




Joined: 12 Nov 2003
Posts: 432

PostPosted: Wed Aug 06, 2008 10:35 pm    Post subject: Reply with quote

I figured as much. Pretty lucky on my part.
_________________
My name is...
The shake-zula, the mic rulah, the old schoola, you wanna trip? I'll bring it to yah...
Back to top
View user's profile Send private message 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