Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

[RPG mode] Modify maxspeed?

Chat and ask questions about the RPG Maker Mode here.
Post Reply
User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

[RPG mode] Modify maxspeed?

Post by kddekadenz »

Exist any command or hack to modify the maxspeed via script?
I know that there is a command r_get_maxspeed.
I do need to know this to toggle the movespeed using a key.

Again, there is a list with all RPG commands missing.
Kelgar is an advanced RPG beeing developed in Sandbox
User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: [RPG mode] Modify maxspeed?

Post by kddekadenz »

Hirato, please reply, I want to include it in the next monthly release of Kelgar.
Kelgar is an advanced RPG beeing developed in Sandbox
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: [RPG mode] Modify maxspeed?

Post by Hirato »

You can only run, there is no walking or sneaking yet.
Your speed and jump height is determined by your stats, modifying these will increase them. In addition you can set bonus values for these via r_char_base_maxspeed and r_char_base_jumpvel
This is not a url, clicking it is pointless
User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: [RPG mode] Modify maxspeed?

Post by kddekadenz »

Hirato wrote:You can only run, there is no walking or sneaking yet.
Thank you. I do know that this isn't implemented yet, I want to implement it myself. Sorry if that was unclear.
Hirato wrote:In addition you can set bonus values for these via r_char_base_maxspeed and r_char_base_jumpvel
This is actually the answer to my question. Thank you again :)
Kelgar is an advanced RPG beeing developed in Sandbox
User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: [RPG mode] Modify maxspeed?

Post by kddekadenz »

Does not work..
Does it need any reference (player)? Does it work only under specific circumstances (only for items,etc.)?
I'm not sure how to use it. r_char_base_maxspeed player 50?
Kelgar is an advanced RPG beeing developed in Sandbox
User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: [RPG mode] Modify maxspeed?

Post by kddekadenz »

Here is my code (does not work properly):

defaults.cfg (executed in cfg of my game)

Code: Select all

bind Q [
if ( < (r_global_get $speed) 1) [ //running?
	r_global_set $speed 1 //start running
	r_char_base_maxspeed self 100

	echo (concat "fast - " (r_get_maxspeed player))] [
		r_global_set $speed 0 //normal speed
		r_char_base_maxspeed self 0
		echo (concat "normal - " (r_get_maxspeed player))] 
]
I did use a global variable to have the bonus persistent over sessions. I think the mistake is in how I called r_char_base_maxspeed, but I'm not sure what it is.
Kelgar is an advanced RPG beeing developed in Sandbox
northstar
Member
Member
Posts: 208
Joined: March 1st, 2012, 1:17 pm
Name: steven

Re: [RPG mode] Modify maxspeed?

Post by northstar »

all i did (since i dont care for jump) was put into my game cfg...

bind SPACE [gamespeed 300; onrelease [gamespeed 100]]

works like a charm... set the bind key and speeds to whatever you want...
User avatar
Sircameron
Member
Member
Posts: 62
Joined: March 6th, 2012, 9:13 pm
Name: Cameron
Location: Indiana

Re: [RPG mode] Modify maxspeed?

Post by Sircameron »

Code: Select all

r_select_char actor [
r_char_base_maxspeed (+ (r_char_base_maxspeed_get) 50)
]
use that to add +50 maxspeed. Then just reverse it for regular speed.. -50
User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: [RPG mode] Modify maxspeed?

Post by kddekadenz »

Thank you, works fine :D
Does anyone know how to modify the initial maxspeed (47.5)?

EDIT: Ok, forget it. I figured it out myself - via movespeed.
Kelgar is an advanced RPG beeing developed in Sandbox
Post Reply