[RPG mode] Modify maxspeed?

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

[RPG mode] Modify maxspeed?

Postby kddekadenz » September 26th, 2012, 10:02 am

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?

Postby kddekadenz » September 29th, 2012, 2:14 pm

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?

Postby Hirato » September 29th, 2012, 9:36 pm

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?

Postby kddekadenz » October 1st, 2012, 1:22 pm

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?

Postby kddekadenz » October 2nd, 2012, 2:03 pm

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?

Postby kddekadenz » October 4th, 2012, 11:04 am

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?

Postby northstar » October 22nd, 2012, 11:21 am

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?

Postby Sircameron » October 26th, 2012, 1:20 am

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?

Postby kddekadenz » October 26th, 2012, 10:26 am

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


Return to “RPG Maker Mode”

Who is online

Users browsing this forum: No registered users and 2 guests