RPG Maker Forums

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"




I do not know
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?

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top