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 NEED help. heal after lvling script

vodica

Member

I have never made a script b4 and don;t know anything but i really need a script that makes it so you heal you character completely upon leveling
 
You might want to learn scripting a little bit so you can help yourself later and save time, since most people here ignore such a small, easy request like this (well, at least they think so).

You only need to add/replace two lines of the default script to obtain your need. Here's how:
1. Find Game_Actor.
2. Find def exp=(exp).
3. Add this line at the last line of the method (before the end):
Code:
    # Heal HP and SP
    @hp = self.maxhp
    @sp = self.maxsp

If you also want to heal character during an event level-up, do it also at def level=(level) method.

That should do it.
 

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