[Resolved]Change running/jumping/sneaking in BABS?

Started by Boba Fett Link, November 14, 2011, 03:31:27 pm

Previous topic - Next topic

Boba Fett Link

November 14, 2011, 03:31:27 pm Last Edit: November 17, 2011, 06:24:55 pm by Boba Fett Link
Is there a callscript for BABS that allows you to change the running speed, the jumping distance, and the sneaking speed in BABS?

The reason I want to know is because I am making an evented horse system.


Edit: Also, is there a callscript to turn off catapiller in BABS? Because when the first player is ridding the horse, the second party member's head is in an awkward position... Never mind. This one is in the Manual. However,t he other ones aren't.
This post will self-destruct in 30 seconds.

ShadowPierce

Isn't that explained in the manual? I think it is... :/

Spoiler: ShowHide
Quote from: Blizzard on February 16, 2011, 03:44:48 pmThere you go. It's the proof that SDK is crap. It's incompatible with itself.
3DS Friend Code: ShowHide
1161-0627-9890

Boba Fett Link

There isn't one listed...The manual only lists callscripts specific to the battle aspect of BABS, so I was hoping there might still be one.
This post will self-destruct in 30 seconds.

KK20

After looking through the code a bit, I found nothing. Speeds are only defined by the constants you assign it before start up. The only suggestion I could give is use a Common Event that checks if the player has the Key pressed and change '$game_player.move_speed' to whatever value you want it to be. I don't know if using the same Key you have assigned to 'Run' would create any conflicts.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Boba Fett Link

That would work. However, I'd have to also event the jumping, too.

Couldn't I assign the jump distance to a variable in the script? Or is that impossible?
This post will self-destruct in 30 seconds.

KK20

Jumping distance takes current speed minus whatever is considered normal speed and then adds the value of "JUMPING". So, the game already processes that for you.

Played around with this a bit, and came to some way of implementing the feature. Mind you, this is a really amateur fix; there's probably a much better way going about solving this.

1.) Open Part 2 of BlizzABS. Locate 'def update_control' (Line 3592). A few lines below, find 'player.move_speed = player.normal_speed' (Line 3596) and replace it with
player.move_speed = player.normal_speed unless $game_switches[id]
Replace 'id' with whatever switch your horse event activates on.
Go down a bit and find 'player.move_speed = Config::RUN_SPEED' (Line 3605) and replace it with
player.move_speed = Config::RUN_SPEED unless $game_switches[id]
Again, replacing 'id' with the switch you want.

2.) Open Database and go to Common Events. Make it Parallel Process with the condition switch the same ID as what you just put above. Insert Script:
if Input.press?(Input::Run)
$game_player.move_speed = 6
else
$game_player.move_speed = 4
end

Change the move speed values to whatever you want.

Worked for me. Like I said, very crude fix...  :P

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

ForeverZer0

You could always just set the move speed to a variable then change it to whatever you wanted to whenever you wanted to.
So instead of "player.move_speed = player.normal_speed", you could have player.move_speed = $game_variables[ID]"
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Boba Fett Link

November 17, 2011, 04:13:19 pm #7 Last Edit: November 17, 2011, 06:15:41 pm by Boba Fett Link
Thanks both of you! I'll try it out!

Edit: KK20, I tried your version, and it works great! Thanks!
This post will self-destruct in 30 seconds.