Hello everybody.
I wonder, how can I make a script called for:
1 - "If the last skill group was performed by Actor X"
2 - "If the last skill group was performed by Actor X, and Y was the Skill"
3 - "If the last skill group was performed by Actor X, and Z was element"
4 - "If the last enemy has attacked the "state ID_X"
if this helps, but the IMP1 (User) once helped me with something similar.
The questions were:Check if the last skill used by everyone from party, was the adeptness 2:
$game_party.last_skill.object == $data_skills[2]
Check if the last ability used by anyone of party, was the element 2
$game_party.last_skill.object.damage.element_id == 2
And he made the following script:
class Game_Party attr_reader :last_skill alias imp_last_skill_setup initialize unless $@ def initialize(*args) imp_last_skill_setup(*args) @last_skill = Game_BaseItem.new end endclass Scene_Skill alias imp_last_skill_useitem on_item_ok unless $@ def on_item_ok $game_party.last_skill.object = item imp_last_skill_useitem end endclass Scene_Battle alias imp_last_skill_useitem on_skill_ok unless $@ def on_skill_ok $game_party.last_skill.object = @skill_window.item imp_last_skill_useitem end end
Does someone could help me?