Xavierblazer
Vault Senior Citizen
When I try to compile this script I get the error EXPECTING: Top level statement. What does it mean, and is there a tutorial or something on compiler error messages?
Code:
procedure start;
procedure critter_p_proc;
procedure pickup_p_proc;
procedure talk_p_proc;
procedure destroy_p_proc;
procedure look_at_p_proc;
procedure description_p_proc;
procedure use_skill_on_p_proc;
procedure damage_p_proc;
procedure map_enter_p_proc;
procedure timed_event_p_proc;
procedure Node998; // Feiten
procedure Node999; // Nomoretalkie
procedure Node001;
procedure Node002;
import variable chesties;
in_dialog:= false
moved_inven:= false;
procedure start begin
end
procedure timed_event_p_proc begin
end
procedure map_enter_p_proc begin
end
procedure critter_p_proc begin
end
procedure damage_p_proc begin
end
procedure pickup_p_proc begin
end
procedure talk_p_proc begin
variable the_bit := 1;
variable the_value := 1;
while (the_bit <= 32) do begin
the_bit += 1;
the_value := the_value * 2;
end
if (in_dialog == false) then begin
in_dialog := true;
start_gdialog(SCRIPT_mrtestie,self_obj,4,-1,-1);
gSay_Start;
call Node001;
gSay_End;
end_dialogue;
in_dialog := false;
end
else call Node001 ;
end
procedure destroy_p_proc begin
end
procedure look_at_p_proc begin
end
procedure description_p_proc begin
end
procedure use_skill_on_p_proc begin
end
procedure Node998 begin
end
procedure Node999 begin
end
procedure Node001 begin
gSay_Reply(SCRIPT_mrtestie,"Sup homie?") ;
giQ_Option(001,SCRIPT_mrtestie,"nutin. sup wit u?",Node002,(50)) ;
giQ_Option(001,SCRIPT_mrtestie,"Why do you talk like a moron?",Node002,(50)) ;
giQ_Option(001,SCRIPT_mrtestie,"I gotta run. Nature calls, you know?",Node999,(50)) ;
end
procedure Node002 begin
if (moved_inven:= false) then begin
move_obj_inven_to_obj(dude_obj,chesties);
moved_inven:= true;
end
gSay_Reply(SCRIPT_mrtestie,"This is my reply.") ;
giQ_Option(001,SCRIPT_mrtestie,"Thats interesting. I gotta know something else.",Node001,(50)) ;
giQ_Option(001,SCRIPT_mrtestie,"I gotta run. Nature calls, you know?",Node999,(50)) ;
end