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.

Showing the icon beside the skill

Script Request Template
This is a request for a new script

Script Title:
Icon beside skill

RMXP or RMVX:
Rmxp (legal version)

Detailed Description:
What I want is to have the icon be shown when you use a skill. Example:
(Fire Icon) FIRE


Screen shots:
None

Other Scripts I am using (in order):
MOG_Scene_Menu
AB_Paradog's Active Time Battle v2.58
MOG_Location Name
MOG_Scene Title XAS Edition
Leon's Shopping System



if someone asks a specific question, add that detail to this post.
 
Icon shown... where? In the skills menu?

If you mean the skills menu then it's quite simple. I don't have RPG Maker on this computer - could you copy and paste your "Window_Skills" script here? (Unless somebody else takes this request).

Ok, I have no idea what you want. Where do you want the icon to be shown? "By the skill" means nothing...
 

Hybrida

☆ Biggest Ego ☆
Member

I have A logical idea: Maybe he wants the Icon to appear by the skill when its being used in battle.
RPMXP shows the skill at the top of the screen when its used. So I'm guessing
He wants the Icon next to it.
(Fire Icon) Fusion Cannon.
I would find this very useful When a enemy use a crazy skill and you can't tell what attribute it is. Just a friendly guess
Rad%20Aura.png
 
1. Put this below Window_Help:
Code:
class Window_Help < Window_Base

  

  def set_icon(skill, align = 0)

    set_text(skill.name, align)

    size = self.contents.text_size(skill.name).width

    bitmap = RPG::Cache.icon(skill.icon_name)

    self.contents.blt(278 - (size / 2), 4, bitmap, Rect.new(0, 0, bitmap.width, bitmap.height))

  end

 

end

2. Hit CTRL+Shift+F, type in "skill.name" (no quotations), hit enter
3. Go to the result in Scene_Battle 4 (Or whatever battle system you're using)
4. Change '@help_window.set_text(@skill.name, 1)' to '@help_window.set_icon(@skill, 1)'
5. You end up with this
 

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