Page 1 of 1

Changing player stats from cfg?

Posted: June 25th, 2009, 6:12 pm
by Mama's Boy
I notice that in the rpg map glitchworld_22, there are switches that are meant to change your stats. When I pulled the switch while playing this level, it said, "Enter editmode or modify the map cfg to change [stat]"

I checked out the map cfg and it said:

"level_trigger_[number]" = [[stat] [number]]

I have tried doing a similar thing for my game, but the same thing is happening. Does anyone have any suggestions?

-Thanks,
Jacob

Re: Changing player stats from cfg?

Posted: June 25th, 2009, 9:59 pm
by Joe Staff
try putting "edittoggle;" on both sides, so it can't say that!

Re: Changing player stats from cfg?

Posted: June 26th, 2009, 3:36 am
by Hirato
I redesigned the world var system post release... the RPG uses the enwer system (and the current SVN sandbox, an even newer one)

fortunately, the rpg binary has the other gamemodes as well if you'd rather use it to the last release (the version for the RPG is 2.3.1)

Re: Changing player stats from cfg?

Posted: June 26th, 2009, 8:48 am
by Mama's Boy
Thanks to both of you! My game is coming along very well. I am making some "powerups" that only last for a little while. I do

"level_trigger_8" = [
edittoggle
movespeed 300
edittoggle
sleep 6000 [
edittoggle
movespeed 100
edittoggle
]
]

I tried doing the same thing for jumpvelocity, but it is lower than the original when the powerup runs out. Is the default jumpvelocity not 100?

Re: Changing player stats from cfg?

Posted: June 26th, 2009, 8:49 am
by Hirato
the default is 200 for jumpvel

Re: Changing player stats from cfg?

Posted: June 26th, 2009, 8:53 am
by Mama's Boy
Thank you so much! Everything appears to be working smoothly now!