10-13-2024, 09:52 PM
(This post was last modified: 10-13-2024, 09:54 PM by DerVVulfman.)
NOPE, but almost. Creating the instance values and zero-ing them out when the actor is made seems viable, but the bonuses or penalties will not properly reset when the player changes equipment. You were SO close... it had to be when the data resets:
Just changing over from Setup to the reset_set_status method does the trick. The values reset to 0 just before any 'new' equipment sets are calculated... if any at all.
AND DAMMIT, I KNEW SOMETHING WAS WRONG! VIC WROTE ANOTHER SCRIPT!!!!
IF you were to add "Add | New Status", this script adds the so-mentioned critical hits and damage values and takes care of the issues with the screwed up crt values on its own. That is, if you want to add the four new values to your equipment.
IF you don't care about critical hit bonuses, critical hit resistance and/or critical damage bonuses, use the script snippet above.
IF you want them, use the script that gives the new statuses.
VICTOR SANT!!!!! IT WOULDA BEEN GREAT IF YOU MENTIONED THAT IN THE SCRIPTS!!!!!
Code:
# * ATOA CBS - Equipment Set Variables Patch * #
# Scripter : Kyonides Arkanthes
# 2024-10-13
class Game_Actor
alias :kyon_atoa_eqset_patch_gm_act_reset_set_status :reset_set_status
def reset_set_status
equipment_set_vars
kyon_atoa_eqset_patch_gm_act_reset_set_status
end
def equipment_set_vars
@set_crt = 0
@set_dmg = 0
@set_rcrt = 0
@set_rdmg = 0
end
end
Just changing over from Setup to the reset_set_status method does the trick. The values reset to 0 just before any 'new' equipment sets are calculated... if any at all.
AND DAMMIT, I KNEW SOMETHING WAS WRONG! VIC WROTE ANOTHER SCRIPT!!!!
IF you were to add "Add | New Status", this script adds the so-mentioned critical hits and damage values and takes care of the issues with the screwed up crt values on its own. That is, if you want to add the four new values to your equipment.
IF you don't care about critical hit bonuses, critical hit resistance and/or critical damage bonuses, use the script snippet above.
IF you want them, use the script that gives the new statuses.
VICTOR SANT!!!!! IT WOULDA BEEN GREAT IF YOU MENTIONED THAT IN THE SCRIPTS!!!!!