The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: tvman3279 on April 24, 2010, 12:48:17 AM

Title: [Resolved] Level Up
Post by: tvman3279 on April 24, 2010, 12:48:17 AM
I want to be able to change a variable each time a character levels up where character 1 changes variable 1 and 2 changes variable 2, but I do not know how to do it because actors are 3 numbers (001) and variables are 4 (0001) so I can't say:

$game_variables[$actor_id - 3] += 1

If you could help, I would be very appreciated
Title: Re: Level Up
Post by: cozziekuns on April 24, 2010, 01:25:55 AM
You could make a common event where each time your character levels, it changes the variable. For example:

Change Variable: [0001]: Actor[001]'s level.

And make it parallel process. Just a thought.
Title: Re: Level Up
Post by: tvman3279 on April 24, 2010, 05:32:12 PM
That didn't work, it doesn't change the variable. Thanks though.
Title: Re: Level Up
Post by: cozziekuns on April 24, 2010, 05:35:49 PM
Lol, forgot that Enterbrain made a scripting error (or something like that).

http://rmrk.net/index.php/topic,25243.0.html (http://rmrk.net/index.php/topic,25243.0.html) should fix that.
Title: Re: Level Up
Post by: tvman3279 on April 24, 2010, 06:08:42 PM
Thanks, that was very helpful.