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.

I was wondering?

Hello everone, I was wondering to make custom stats in the game do you have to make a new script are can you modify the Game_actor moudle?
 

Mac

Member

You could add something like this above main..this will create a new stat but it will only be there for viewing purposes:-

Code:
class Actor_NewStat
  Actor_NewStat = { 1 => 22, 2 =>24, 3 => 27, 4 => 21, 5 => 31, 6 => 34, 7 => 46, 8 => 56}
 
  def newstat
    return Actor_NewStat[@actor_id]
  end
end

If you tell us more about what you want the stat to do then..we can help more.

To draw the stat use something like this:-

Code:
      draw_actor_newstat(actor, 140, -1)

And place it in Window_Base with the rest.
 

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