Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Script Changing

Hey,

I'm wanting to use the Rough Skin script, but I want to know how to make it applicable to battlers instead of enemies. Do I just change "enemy" to "battler" and vice versa?

Thanks.
 
Just add this and then edit it:
Code:
class Game_Actor < Game_Battler
  
  alias actor_rough_skin_initialize initialize
  def initialize(actor_id)
    actor_rough_skin_initialize(actor_id)
    
    if actor_id == 1
      @rough_skin = true
    end
    
  end
end
 
Here does this work for you:
Code:
class Game_Battler
  
  alias rough_skin_skills_skill_effect skill_effect
  def skill_effect(user, skill)
    if skill.id == 1 # EDIT HERE (At the moment heal activates rough skin effect)
      @rough_skin = true
      return true
    end
    return rough_skin_skills_skill_effect(user, skill)
  end
  
end

class Scene_Battle
  
  alias rough_skin_start_phase5 start_phase5
  def start_phase5
    for actor in $game_party.actors
      actor.rough_skin = false
    end
    rough_skin_start_phase5
  end
  
end
Just change the 1 to the skill id that you want to use.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top