Kamehameha
First time out of the vault

Hello!
I'm trying to compile a script with critter_skill_level using the sslc compiler on the Fallout Database (20150208) and it tells me "Undefined symbol critter_skill_level in factor". Is there something wrong with my math (like I need to assign values to variables or something) or will this not work?
It is supposed to compare the Throwing skill to the Melee skill, and if Throwing < Melee / 2, Throwing = Melee / 2.
It works when I change the skill checks/changes to stat check/changes, like making Agility = Int / 2.
Here's the uncompiled script:
I'm trying to compile a script with critter_skill_level using the sslc compiler on the Fallout Database (20150208) and it tells me "Undefined symbol critter_skill_level in factor". Is there something wrong with my math (like I need to assign values to variables or something) or will this not work?
It is supposed to compare the Throwing skill to the Melee skill, and if Throwing < Melee / 2, Throwing = Melee / 2.
It works when I change the skill checks/changes to stat check/changes, like making Agility = Int / 2.
Here's the uncompiled script:
procedure start;
procedure start begin
Thanks!procedure start begin
if(critter_skill_level(dude_obj, 05)<(critter_skill_level(dude_obj, 04)/2)) then begin
endcritter_mod_skill(dude_obj, 05, (critter_skill_level(dude_obj, 04)/2)-critter_skill_level(dude_obj,5));
end