New to modding fallout games, and a few days ago, I decided to make a mod for Fallout of Nevada that makes the prostitute (Jasmine) in Black Rock a companion. I have been following tutorials such as https://www.nma-fallout.com/threads/tutorial-for-adding-party-members-in-fallout-2-attempt.199819/
As of now, there is a strange bug happening. When I recruit Jasmine, she follows me around, everything works perfectly fine. But as soon as I enter a new map or reenter any map, she stops following me around.
After some time checking my code, I found out that the local variable LVAR_FOLLOW_DISTANCE or in this case local_var(8) is reset to 0 every time I leave/enter a map.
One of the desperate workarounds I attempted was forcing the value of local_var(8) to set to 3 in the critter_p_proc, using the set_local_var(8, 3) function. I have also tried the same thing in map_enter_p_proc, both attempts did not work: LVAR_FOLLOW_DISTANCE is still being set to 0.
I would greatly appreciate any help if you have some idea what is causing this problem. This is the code for Node1007 that i use to check if local variable LVAR_FOLLOW_DISTANCE has been set to 0. Attached below is the .ssl file I have been working on. (in .txt format as NMA does not allow .ssl uploads)
As of now, there is a strange bug happening. When I recruit Jasmine, she follows me around, everything works perfectly fine. But as soon as I enter a new map or reenter any map, she stops following me around.
After some time checking my code, I found out that the local variable LVAR_FOLLOW_DISTANCE or in this case local_var(8) is reset to 0 every time I leave/enter a map.
One of the desperate workarounds I attempted was forcing the value of local_var(8) to set to 3 in the critter_p_proc, using the set_local_var(8, 3) function. I have also tried the same thing in map_enter_p_proc, both attempts did not work: LVAR_FOLLOW_DISTANCE is still being set to 0.
I would greatly appreciate any help if you have some idea what is causing this problem. This is the code for Node1007 that i use to check if local variable LVAR_FOLLOW_DISTANCE has been set to 0. Attached below is the .ssl file I have been working on. (in .txt format as NMA does not allow .ssl uploads)
procedure Node1007 begin
if (local_var(8) == 3) then begin
Reply("I'm staying close.");
end else if (local_var(8) == 6) then begin
Reply("I'm keeping some distance.");
end else if (local_var(8) == 9) then begin
Reply("I'm giving you your space.");
end else if (local_var(8) == 0) then begin
Reply("localvar8 has been set to 0");
end
DEF_PM_FOLLOW;
end
if (local_var(8) == 3) then begin
Reply("I'm staying close.");
end else if (local_var(8) == 6) then begin
Reply("I'm keeping some distance.");
end else if (local_var(8) == 9) then begin
Reply("I'm giving you your space.");
end else if (local_var(8) == 0) then begin
Reply("localvar8 has been set to 0");
end
DEF_PM_FOLLOW;
end
Attachments
Last edited: