I am trying to write a procedure that will increase the hit points of the player to the maximum 999. The line of code I used is as follows:
The problem is that this line of code does nothing. I know my script works as everything else is set to what I wanted expect the player's hp. Even if I change the 999 to any other number, still nothing happens. Any ideas? I believe that is the correct syntax for increasing the player's hp, but I might be wrong.
Thanks in advance.
Code:
set_critter_stat(dude_obj, STAT_max_hp, 999);
The problem is that this line of code does nothing. I know my script works as everything else is set to what I wanted expect the player's hp. Even if I change the 999 to any other number, still nothing happens. Any ideas? I believe that is the correct syntax for increasing the player's hp, but I might be wrong.
Thanks in advance.