[Resolved]RMXP additional stat functions

Started by [Faint], January 26, 2010, 10:29:33 am

Previous topic - Next topic

[Faint]

January 26, 2010, 10:29:33 am Last Edit: January 28, 2010, 09:55:56 pm by [Faint]
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?
Scripts by me - State Requirement Skills
current project - Project: AURA

Jackolas

January 26, 2010, 10:50:27 am #1 Last Edit: January 26, 2010, 11:02:39 am by Jackolas
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?

[Faint]

well I am not a pro at scripting but yea it seems simple enough. Thanks :)
Scripts by me - State Requirement Skills
current project - Project: AURA