Gain Ability Point every Level Up?

RedFawkes

Veteran
Veteran
Joined
Jun 21, 2018
Messages
39
Reaction score
16
First Language
BR Portuguese
Primarily Uses
RMVXA
Hello.

I got a script that allows the player to increase their stats with points. To acquire these points, i must make a script call setting the amount of points the player is receiving. However, i'd like it to work so that at every level the player gets a point. For that, i'm trying run a common event as a parallel process that checks the player level and grants him a point. Something like this:

1592440251026.png
The way it's presented here generates an infinite amount of points, this is just to illustrate the point.

I do not know to make it properly work. I know of a very tiresome workaround that would involve creating a parallel process-common event for every single level that would look like this:

1592440713721.png

I'd really appreciate any ideas! :D
 
Last edited:

RedFawkes

Veteran
Veteran
Joined
Jun 21, 2018
Messages
39
Reaction score
16
First Language
BR Portuguese
Primarily Uses
RMVXA
Code:
class Game_Actor
  alias addpoint_on_lvlup level_up
  def level_up
    addpoint_on_lvlup
    self.points += 1
  end
end
Here, a snippet to automate your needs.
You're a living legend, thank you so much!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,017
Messages
1,018,356
Members
137,802
Latest member
rencarbali
Top