Author Topic: [Resolved]RMXP additional stat functions  (Read 1139 times)

Offline [Faint]

  • Transcended Spirit
  • ***
  • Posts: 182
  • LV: 6
  • Gender: Male
  • "Sit upon the frozen heavens."
    • View Profile
[Resolved]RMXP additional stat functions
« on: January 26, 2010, 05:29:33 PM »
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?
« Last Edit: January 29, 2010, 04:55:56 AM by [Faint] »
Scripts by me - State Requirement Skills
current project - Project: AURA

Offline Jackolas

  • Ethereal Devastator
  • ****
  • Posts: 499
  • LV: 31
  • Gender: Male
  • Its just me
    • View Profile
    • My Clan
Re: RMXP additional stat functions
« Reply #1 on: January 26, 2010, 05:50:27 PM »
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:
Code: [Select]
    return pdef1 + pdef2 + pdef3 + pdef4 + pdef5 + base_str

think you can figure out the rest?
« Last Edit: January 26, 2010, 06:02:39 PM by Jackolas »

Offline [Faint]

  • Transcended Spirit
  • ***
  • Posts: 182
  • LV: 6
  • Gender: Male
  • "Sit upon the frozen heavens."
    • View Profile
Re: RMXP additional stat functions
« Reply #2 on: January 26, 2010, 06:08:57 PM »
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