I don't know if this can be useful for many people, but for things like Zelda it should be better than restore all command ...
Well, everything is in the title, I'm requesting a script that can refill heart to the hero and stop when it reach the max heart ...
I'm ready to see some comments like (use add_hp +1 and wait 1 frame but it dont compute the amount of heart the hero currently have(max_hp))
It might be easy to make, and thus, can be XAS, BABS and other engines compatible ...
I wrote the code in a notepad (see bellow), but I need help, I don't have enough time because of school and I need help for doing it ...
The code would work in 2 ways, 1st, the script would be autonomous and 2nd a script call would make the thing to work ...
Code written in a notepad :
module name
hp_to_add = 1
waitcount = 1
se = RPG::AudioFile.new('Heartadd.wav',100)
def initialize
waitcount = 0
end
def heart_refill
if actor_hp != max_hp
hp += hp_to_add
wait(waitcount)
if waitcount = 4
Audio.se_play(se)
waitcount = 0
end
if hp == max_hp
break
end
end
It maybe suck but it resume what I want xD
Thanks for the person who do this