Help by editing a Yanfly scrip (Steal skill)

Binder28

Veteran
Veteran
Joined
Sep 15, 2020
Messages
50
Reaction score
13
First Language
Portuguese
Primarily Uses
RMVXA
Hello...I am making a game where you would have a class like FF's blue mage/fencer class, the one where you can steal enemies skill..and I've found a script for it...Yanfly's steal skill


The problem is thatwhen you steal the skill only one actor gets the stolen skill, and I want that when you use the steal skill every actor learns it...I don't wantavery actor to steal the same skill...

Anyway here is the script...thanks for the help

Edit: I've tried posting the script directly here but it didn't work...so please use the link above...I don't know how to do stuff yet =( )
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
every actor learns it
Tested
Ruby:
class Scene_Battle < Scene_Base
 
  def apply_skill_steal(target, item)
    return unless item.skill_steal
    return if target.actor?
    return unless @subject.actor?
    for skill in target.stealable_skills
      for i in 0...$game_party.battle_members.size
        @subject = $game_party.battle_members[i]
        next if @subject.skill_learn?(skill)
        @subject.learn_skill(skill.id)
        string = YEA::SKILL_STEAL::MSG_SKILL_STEAL
        skill_text = sprintf("\\i[%d]%s", skill.icon_index, skill.name)
        text = sprintf(string, @subject.name, skill_text, target.name)
        @log_window.add_text(text)
        YEA::SKILL_STEAL::MSG_DURATION.times do @log_window.wait end
        @log_window.back_one
      end
    end
  end
 
end
 

Binder28

Veteran
Veteran
Joined
Sep 15, 2020
Messages
50
Reaction score
13
First Language
Portuguese
Primarily Uses
RMVXA

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,090
Members
137,586
Latest member
Usagiis
Top