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.
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.
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?
- kddekadenz
- Member
- Posts: 423
- Joined: July 17th, 2011, 11:02 am
- Name: kdd
- Contact:
[RPG mode] Modify maxspeed?
Kelgar is an advanced RPG beeing developed in Sandbox
- kddekadenz
- Member
- Posts: 423
- Joined: July 17th, 2011, 11:02 am
- Name: kdd
- Contact:
Re: [RPG mode] Modify maxspeed?
Hirato, please reply, I want to include it in the next monthly release of Kelgar.
Kelgar is an advanced RPG beeing developed in Sandbox
Re: [RPG mode] Modify maxspeed?
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
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
- kddekadenz
- Member
- Posts: 423
- Joined: July 17th, 2011, 11:02 am
- Name: kdd
- Contact:
Re: [RPG mode] Modify maxspeed?
Thank you. I do know that this isn't implemented yet, I want to implement it myself. Sorry if that was unclear.Hirato wrote:You can only run, there is no walking or sneaking yet.
This is actually the answer to my question. Thank you againHirato wrote:In addition you can set bonus values for these via r_char_base_maxspeed and r_char_base_jumpvel
Kelgar is an advanced RPG beeing developed in Sandbox
- kddekadenz
- Member
- Posts: 423
- Joined: July 17th, 2011, 11:02 am
- Name: kdd
- Contact:
Re: [RPG mode] Modify maxspeed?
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?
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
- kddekadenz
- Member
- Posts: 423
- Joined: July 17th, 2011, 11:02 am
- Name: kdd
- Contact:
Re: [RPG mode] Modify maxspeed?
Here is my code (does not work properly):
defaults.cfg (executed in cfg of my game)
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.
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))]
]
Kelgar is an advanced RPG beeing developed in Sandbox
Re: [RPG mode] Modify maxspeed?
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...
bind SPACE [gamespeed 300; onrelease [gamespeed 100]]
works like a charm... set the bind key and speeds to whatever you want...
- Sircameron
- Member
- Posts: 62
- Joined: March 6th, 2012, 9:13 pm
- Name: Cameron
- Location: Indiana
Re: [RPG mode] Modify maxspeed?
Code: Select all
r_select_char actor [
r_char_base_maxspeed (+ (r_char_base_maxspeed_get) 50)
]
- kddekadenz
- Member
- Posts: 423
- Joined: July 17th, 2011, 11:02 am
- Name: kdd
- Contact:
Re: [RPG mode] Modify maxspeed?
Thank you, works fine
Does anyone know how to modify the initial maxspeed (47.5)?
EDIT: Ok, forget it. I figured it out myself - via movespeed.
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