Yes, you are right. I missed the name of file rndmnt.intNo, it is used in rndmtn.int.
I mean that in this file there is something about finding and resting near water srping. Encounter like with gold deposit.
But it requires critical success to show up. And since engine doesn't seems to generate criticals... Yes, I may have to check all scripts for is_critical condition and do something about it. Thanks.
You mean that this is not working with FO1 engine?
Code:
LVar0 := roll_vs_skill(dude_obj, SKILL_OUTDOORSMAN, 20 * has_trait(TRAIT_PERK, dude_obj, PERK_survivalist));
if (is_success(LVar0)) then
begin
critter_injure(dude_obj, 2); // blablabla...bla blabla
if (is_critical(LVar0)) then
begin
Item := create_object_sid(PID_GOLD_NUGGET, 16887, 0, -1);
end
end
maybe try something like this (example!!!):
Code:
LVar0 := roll_vs_skill(dude_obj, SKILL_OUTDOORSMAN, 20 * has_trait(TRAIT_PERK, dude_obj, PERK_survivalist));
if (is_success(LVar0)) then
begin
critter_injure(dude_obj, 2); // blablabla...bla blabla
LVar1 := get_pc_stat(STAT_crit_chance)+round(has_skill(dude_obj,SKILL_OUTDOORSMAN)/10); //example
if LVar1>= random(1,1000) then
begin
Item := create_object_sid(PID_GOLD_NUGGET, 16887, 0, -1); // dude find gold!
end
end