Skill and stat roles

Chris Parks

Vault Senior Citizen
Need some help here.

I want to know how to implement stat roles properly. I'm making a script where you talk to someone and I need some sort of stat role against luck to see if he attacks you. ie High luck, you get away safe most of the time, low luck, you get attacked most of the time.

Any help would be appreciated.
 
Hi there.
You can try something similar:
Code:
procedure Nodexyz begin
variable Luck_Check;
   Luck_Check:=do_check(dude_obj,STAT_lu,0);
//number is malus/ bonus
if (is_success(Luck_Check)) then begin
do_something;
end
   else begin
       call node998;
   end
end
Hope this helps. See you.
 
Back
Top