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.

Tantenkai SBS question

This has been bugging me for awhile, but how do you make a physical skill in the tantenkai sbs.
i have a list of the skills that I want to be physical skills, but they end up using the animation for a magic skill anyway.
example, say skill #1 is supposed to make the character run up and hit the enemy, but he stays there and casts magic instead.
Is there a way to fix this?
Or will I have to take out physical skills from my game completely
screenyg.jpg

See he was supposed to run up and hit him D:
 
Just copy and paste the following script into your script editor:

[rgss]module N01
  SKILL_SEQUENCES = {
  "PHYSICAL_SKILLS" =>
  ["PREV_MOVING_TARGET","WPN_SWING_V","OBJ_ANIM_WEIGHT",
   "12","WPN_SWING_VL","OBJ_ANIM_L","16","Can Collapse","FLEE_RESET"],
}
  ACTION.merge!(SKILL_SEQUENCES)
end
 
module RPG
  class Skill
    #=================
    # * Alias
    #=================
    custom_skills_base_action base_action
    def base_action
      case @id
        when 1   # Physical Skill
          return "PHYSICAL_SKILLS"
      end
      custom_skills_base_action
    end
  end
end
[/rgss]

Now as you can see, the 'when' will be classified in the casing of the skill ID within the database.

So in that script, it says 'when 1' that means it will run that skill sequence when the skill in the database is 1. You can add more as below:
when 1,2,3,4 (Ranging from skill ID 1-4)
that will then execute that skill sequence as physical skill.

Hopefully that helps.
 

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