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.

Setting max HP via scripting

Status
Not open for further replies.
I'm working on a game, and I need to know if there's a method of setting an actor's max HP via a script. Since I'm an absolute newb at scripting, I need your help. Thanks in advance.
 
The only real way would be to do something like so:

Code:
$game_actors[actor_id].maxhp = n

Replace actor_id with your actor_id and n with the new maxhp value. But it just gives a bonus to your maxhp calculation.
 
Status
Not open for further replies.

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