quin2k
Newbie
- Feb 8, 2018
- 35
- 66
- 71
I don't understand it very well myself, but trait object is built as a global ($data_StateName / $data_states) - which I believe is built from Data/States.rvdata2. I haven't pushed 0.10.3.1 through decryption, but attached is one from 0.10.2quite a lot of things actually ranging from item drop rate in each npc to changing skill activation time, is the new version have the traits hard code into the game? can't seem to find the 92_Game_Actor_Traits.rb anywhere.
This is code I used to add/remove states if that'll help:
Code:
def self.custom_state_edit(state, new_value)
actor = $game_player.actor
state_id = state
change = new_value - (actor.stat[state_id] || 0)
if new_value == 0
erase_state(state_id)
elsif change < 0
change.abs.times { actor.remove_state_stack(state_id) }
elsif change > 0
change.times { actor.add_state(state_id) }
end
end
Last edited: