Its been a while since ive coded for FO, now im getting a strange syntax error( ; missing), i know ive forgotten something specifc to fo scripts can someone point me in the right direction
is the code im playing with and any help is appreciated
Edit:
To make it a bit clearer this line is the one causing the errors(i commented out the rest to check)
Code:
if ((get_critter_stat(self_obj,STAT_current_hp) <= (get_critter_stat(self_obj,STAT_max_hit_points)/10)) and HP_Regen <= 2; then begin
set_critter_stat(Self_obj,STAT_current_hp, 500);
HP_Regen:=+1;
end
is the code im playing with and any help is appreciated
Edit:
To make it a bit clearer this line is the one causing the errors(i commented out the rest to check)
Code:
set_critter_stat(Self_obj,STAT_current_hp, 500);