Script to adjust base param growth

RedFoxGaming

Veteran
Veteran
Joined
Jan 14, 2018
Messages
95
Reaction score
16
First Language
English
Primarily Uses
RMMV
Hello,

I was wondering if anyone here would know how to do either one of two things.
I want to make my characters BASE ATK or DEF to always equal 0 at any level, so that they have to have some kind of weapon or armor equipped to have a stat.
Or I use Crystal Engine Extra Stats. If it would be possible for ATK to be the same value as STR at every level and DEF to equal VIT at every level.

Right now I just got the ATK and DEF growth set to be 1 at every level from 1 to 99. The engine itself would not let me set it to 0 and I do not know enough about RUBY scripting to come up with my own script to make this happen.

Any help would be greatly appreciated. Thank you.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,600
Reaction score
6,552
First Language
Indonesian
Primarily Uses
RMVXA
This snippet will always make base attack and defense to zero regardless how do you set it in editor
Code:
class Game_Actor
  alias zero_param_base param_base
  def param_base(param_id)
    return 0 if [2,3].include?(param_id)
    return zero_param_base(param_id)
  end
end
 

RedFoxGaming

Veteran
Veteran
Joined
Jan 14, 2018
Messages
95
Reaction score
16
First Language
English
Primarily Uses
RMMV
Thank you so much. This will work wonderfully.
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top