 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
The Drizzle Who is the Drizzle?

Joined: 12 Nov 2003 Posts: 432
|
Posted: Wed Aug 06, 2008 1:31 pm Post subject: Encumbrance Script |
|
|
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 |
|
 |
msw188
Joined: 02 Jul 2003 Posts: 1041
|
Posted: Wed Aug 06, 2008 2:34 pm Post subject: |
|
|
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 |
|
 |
The Drizzle Who is the Drizzle?

Joined: 12 Nov 2003 Posts: 432
|
Posted: Wed Aug 06, 2008 2:37 pm Post subject: |
|
|
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 |
|
 |
TwinHamster ♫ Furious souls, burn eternally! ♫

Joined: 07 Mar 2004 Posts: 1352
|
Posted: Wed Aug 06, 2008 2:43 pm Post subject: |
|
|
Just tested this and it seems that setting your hero's speed to 0 will make him walk in place indefinitely.  |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Wed Aug 06, 2008 3:03 pm Post subject: |
|
|
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 |
|
 |
The Drizzle Who is the Drizzle?

Joined: 12 Nov 2003 Posts: 432
|
Posted: Wed Aug 06, 2008 7:40 pm Post subject: |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
|
Back to top |
|
 |
The Drizzle Who is the Drizzle?

Joined: 12 Nov 2003 Posts: 432
|
Posted: Wed Aug 06, 2008 7:57 pm Post subject: |
|
|
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 |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Wed Aug 06, 2008 9:50 pm Post subject: |
|
|
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 |
|
 |
The Drizzle Who is the Drizzle?

Joined: 12 Nov 2003 Posts: 432
|
Posted: Wed Aug 06, 2008 10:35 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|