Chaos Project

RPG Maker => Tutorials => Tutorial Requests => Topic started by: [Faint] on January 26, 2010, 10:29:33 am

Title: [Resolved]RMXP additional stat functions
Post by: [Faint] on January 26, 2010, 10:29:33 am
Working on my project I got to wondering, would it be possible to change how the basic stats influence things? For example, is there a way to make INT influence MDEF? Or STR influence HP/PDEF? if so, would someone possibly mind showing me how to go about doing this or atleast point me in the right direction?
Title: Re: RMXP additional stat functions
Post by: Jackolas on January 26, 2010, 10:50:27 am
ofc its possible

the code you need to adapt is the Game_Actor

your looking to edit the formula behind "return" under all the stats (Get Basic Physical Defense, Get Basic Magic Defense, etc)

for example to add your strength to your Physical Defense edit line 285 to:
    return pdef1 + pdef2 + pdef3 + pdef4 + pdef5 + base_str


think you can figure out the rest?
Title: Re: RMXP additional stat functions
Post by: [Faint] on January 26, 2010, 11:08:57 am
well I am not a pro at scripting but yea it seems simple enough. Thanks :)