i want to make a script so that all living creatures (might include robots as well to make things easier) regenerate health
i was thinking 1hp every 24sec / heal rate
id like to add it into combat as well... but im not sure thats possible, then itd be heal rate / 2 or something
i have this so far, but i really am stabbing in the dark, im not a scripter, i cant make my own script, i can edit a little other peoples scripts, and then only if its simple enough
procedure start;
//procedure map_enter_p_proc;
procedure health_regen;
//procedure timed_event_p_proc;//
//procedure critter_heal;//
//#define STAT_heal_rate;//
//#define STAT_max_hit_points;//
//#define STAT_current_hp;//
procedure start
begin
end
//procedure map_enter_p_proc;
procedure health_regen
begin
if (get_critter_stat (dude.obj, STAT_current_hp)) > 0 then begin
add_timer_event (dude.obj, 240 / (get_critter_stat (dude.obj, STAT_heal_rate))) then begin
critter_heal (dude.obj, 1);
end
end
end
any help will be a ppreciated
i was thinking 1hp every 24sec / heal rate
id like to add it into combat as well... but im not sure thats possible, then itd be heal rate / 2 or something
i have this so far, but i really am stabbing in the dark, im not a scripter, i cant make my own script, i can edit a little other peoples scripts, and then only if its simple enough
procedure start;
//procedure map_enter_p_proc;
procedure health_regen;
//procedure timed_event_p_proc;//
//procedure critter_heal;//
//#define STAT_heal_rate;//
//#define STAT_max_hit_points;//
//#define STAT_current_hp;//
procedure start
begin
end
//procedure map_enter_p_proc;
procedure health_regen
begin
if (get_critter_stat (dude.obj, STAT_current_hp)) > 0 then begin
add_timer_event (dude.obj, 240 / (get_critter_stat (dude.obj, STAT_heal_rate))) then begin
critter_heal (dude.obj, 1);
end
end
end
any help will be a ppreciated