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.

Skill help

In my game you get a character that has skill that lets you see the enimies stats and their elemental weaknesses. I'm a terrible scripter so if someone could just tell me how to do it then i can go finish. thank you
 
Miyahe,

I made a skill similar to this that might help get you on the right track.  It shows the enemy's HP and MP, but not any elemental weaknesses (Sorry if I can't help you there).

First, make a skill that does two things:
1)It applies a State Change (call it whatever you want, I called it "Assessing") to the enemy you use it on. 2)It runs a common event that does the following:

1. Checks the status of each enemy, starting from 1, to see if they have the "Assessing" state applied.
2. If that enemy has that status, you assign a temporary variable to whatever enemy stat you want to have shown, using the Control Variables Event.
3. Have a text box display the stat name, followed by that variable (for example: "Hit Points: \v[nnnn]" where nnnn is the four-digit variable number you just assigned.)
4. Repeat steps 2-3 for every enemy stat you want shown (Elemental weaknesses are not assignable, so I don't know how you would do that.  Sorry. :down:)
5. Remove the "Assessing" state from that enemy.
6. Repeat steps 1-5 for the next enemy, going all the way to number 8.

Hope this helps! :smile:
 
Well, here's how I would do this:

1) Make a window object class, one that allows you to read the currently selected enemy when selecting an enemy in scene battle.
2) when start_enemy_select is called in Scene_Battle, create a window from your object class, but only if your @active_battler has your said skill. make sure to update it when cursoring through enemies.
3) when end_enemy_select is called, dispose of the window.

Now, if you want me to do this, I will get this moved to the Script Request and do it for you, or you can do it yourself and ask any help, and I will script it along side you.
 

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