Hello everyone,
I feel really bad with this being my first post in this community... It's not the best way to start 🙁
Well to the point, I've run into a "trouble" I mean, i don't know how or when the weapon/armor' stats are applied when equipping it.
I searched in the base script for reference and looked at Scene_Equip. There I found the method 'on_item_ok' which i suposse it's the one executed when you equip anything in a character.
Then from this method i get
@actor.change_equip(@slot_window.index, @item_window.item)so i searched 'change_equip' in Game_Actor. In that method i just found two 'return' and this
@equips[slot_id].object = itemrefreshThe i assume that the actual updating in param values you can see in 'real time' while equiping a piece of weapon/armor should be in the refresh am i right? because the other line is just setting 'item' as the 'object' in that 'slot_id' of the '@equips' so it's not updating in real time atleast in that method.
But then again the refresh method is get from the main class Game_BattlerBase
def refresh state_resist_set.each {|state_id| erase_state(state_id) } @hp = [[@hp, mhp].min, 0].max @mp = [[@mp, mmp].min, 0].max @hp == 0 ? add_state(death_state_id) : remove_state(death_state_id)endAnd as far as i can see in there only the states and hp/mp are updated...
I'm probably getting all the thing wrong :S but i have more experience with RGSS1 than with RGSS3 and it's hard for me to get used to it tbh
Hope someone can help me with this. All i want to know is where are the newly added stats applied to be able to set some conditions on when to add some of them and when to add some others but not all of the at the same time.
Thank you very much in advance!
I feel really bad with this being my first post in this community... It's not the best way to start 🙁
Well to the point, I've run into a "trouble" I mean, i don't know how or when the weapon/armor' stats are applied when equipping it.
I searched in the base script for reference and looked at Scene_Equip. There I found the method 'on_item_ok' which i suposse it's the one executed when you equip anything in a character.
Then from this method i get
@actor.change_equip(@slot_window.index, @item_window.item)so i searched 'change_equip' in Game_Actor. In that method i just found two 'return' and this
@equips[slot_id].object = itemrefreshThe i assume that the actual updating in param values you can see in 'real time' while equiping a piece of weapon/armor should be in the refresh am i right? because the other line is just setting 'item' as the 'object' in that 'slot_id' of the '@equips' so it's not updating in real time atleast in that method.
But then again the refresh method is get from the main class Game_BattlerBase
def refresh state_resist_set.each {|state_id| erase_state(state_id) } @hp = [[@hp, mhp].min, 0].max @mp = [[@mp, mmp].min, 0].max @hp == 0 ? add_state(death_state_id) : remove_state(death_state_id)endAnd as far as i can see in there only the states and hp/mp are updated...
I'm probably getting all the thing wrong :S but i have more experience with RGSS1 than with RGSS3 and it's hard for me to get used to it tbh
Hope someone can help me with this. All i want to know is where are the newly added stats applied to be able to set some conditions on when to add some of them and when to add some others but not all of the at the same time.
Thank you very much in advance!