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.

Cogwheel face battle

Hello guys, I was looking around some Japanese sites and found this script in "Castle of gear" site.
Looked around here and never saw this script posted so i though i'd do it, but i would also appreciate it if someone told me how this script works, i'm totally lost when it comes to scripts you see, and i want to know if it would be possible to restrict the amount of portraits you use for the characters to whatever one likes.

Here's the link, sorry for not putting up the script.
http://members.jcom.home.ne.jp/cogwheel/script/face_battle.html
 
Congratulations. Cogwheel only posted this script... three weeks ago. Don't think many check the site this often. There are two versions... one for the default system and one for RTAB/CTAB due to issues with that system's battlestatus window.

As far as the way this script works, it uses a dual "CASE" system.

The larger case controls what battler by some identifier, and the second case controls actions... (or is it the other way around???)... nope. I'm right.
This assumes that f7 is the identifier of your battler. And the name of 'each' face is based on this identifier and the text returned (like saying 'f7' dying would return 'f7_15').
Code:
    when "f7" # In case of fighter 7
      # Branch based on action/condition
      case type
      when 0 # Waiting/Ready
        return ""
      when 1 # Dying/Critical
        return "_15"
      when 2 # Defence/Guarding
        return ""
      when 3 # Berserk
        return "_10"
      when 4 # Confuse
        return "_10"
      when 10 # Attack
        return "_6"
      when 11 # Recovery/Healing
        return "_16"
      when 20 # Damage/Struck
        return "_14"
      when 30 # Victory
        return "_12"
      when 40 # Casting
        return "_2"
      when 41 # Special Casting
        return "_3"

In any case, he posted a demo in that same link.

This has to get translated for any understanding, but this is a decent find.

But this also belongs in the 'Script Request' section as this is a request for instructions and/or translations.
 
Thanks for replying man, i will report it to be moved if someone hasn't already then :)
I was wondering, i downloaded the demo and saw that he used many facesets for each battler, would there be a way to use lets say two or three for each character instead?
 

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