Fallout 2 utility Femics Fallout 2 Modding Guide

Hello, I'm trying to make a Node in Dialogue where the NPC has different reactions to what the player said in the previous Node, based on Karma Title and Town Reputation:

procedure Node002 begin
if has_rep_slaver then
Reply(116);
NOption(117, Node003, 4);
else
call Node025 ---------------------This is the error: expecting " ; "
end

I cut the Town Reputation part for now because I couldn't figure it out. The error: expecting " ; ", is one I've mostly gotten while trying different iterations of Node 002, even if I do add a ; at the end of the line. I know this is caused because the line above it is wrong. I looked at different examples in other NPC scripts, but I still end up typing it wrong. How do you make a character respond differently based on different factors in the same Node?
 
Last edited:
How do you make critters who are already dead in maps? And how do you vary their death poses on the ground?
How do you make Special Encounters? I know Outdoorsman Skill factors in, but does Luck count too?
Asked: 1/12/25:
How many ticks/heartbeats are in a day? Are tick counts while traveling on the World Map controlled by a G_VAR?
How long a day is should be defined in a header file iirc. I don't think that ticks are controlled by GVARs it's rather an engine thing.
 
Hello, I'm trying to make a Node in Dialogue where the NPC has different reactions to what the player said in the previous Node, based on Karma Title and Town Reputation:

procedure Node002 begin
if has_rep_slaver then
Reply(116);
NOption(117, Node003, 4);
else
call Node025 ---------------------This is the error: expecting " ; "
end

I cut the Town Reputation part for now because I couldn't figure it out. The error: expecting " ; ", is one I've mostly gotten while trying different iterations of Node 002, even if I do add a ; at the end of the line. I know this is caused because the line above it is wrong. I looked at different examples in other NPC scripts, but I still end up typing it wrong. How do you make a character respond differently based on different factors in the same Node?
Did you declare everything correctly at the head of the script? Did you include the correct header file for the has_rep_slaver macro?
 
call Node025 ---------------------This is the error: expecting " ; "
That error is telling you exactly what the error is.... ; is missing after node025?

Also your if-then is wrong. If you write if ... then... else... the compiler reads it as everything written into a single line. However, you have a linebreak in your code due to writing Reply() and then NOption() over two lines. The correct writing would be if ... then begin ... end else begin ... end, see:

Code:
procedure Node002 begin
   if has_rep_slaver then begin
      Reply(116);
      NOption(117, Node003, 4);
   end
   else begin
      call Node025;
   end
end
 
Back
Top