×
Create a new article
Write your page title here:
We currently have 78,524 articles on Fallout Wiki. Type your article name above or click on one of the titles below and start writing!



Fallout Wiki
78,524Articles
FO76 ui roleplay team.pngThis is the transcript of a script file, which runs certain tasks in the game upon execution.
Details
Type Decompiled script
SCRIPTS.LST Comment Mole Rat in Necropolis (?)
MSG file N/A
Transcript.png

procedure start;
variable count;
variable init_teams;
procedure start
begin
        if (not(init_teams)) then begin
                critter_add_trait(self_obj, 1, 6, 8);
                init_teams := 1;
        end
        if (script_action == 12) then begin
                if (obj_can_see_obj(self_obj, dude_obj) != 0) then begin
                        attack_complex(dude_obj, 0, 1, 0, 0, 30000, 0, 0);
                end
        end
        else begin
                if (script_action == 18) then begin
                        if (source_obj == dude_obj) then begin
                                if (((global_var(160) + global_var(159)) >= 25) and ((global_var(159) > (2 * global_var(160))) or (global_var(156) == 1))) then begin
                                        set_global_var(156, 1);
                                        set_global_var(157, 0);
                                end
                                if (((global_var(160) + global_var(159)) >= 25) and ((global_var(160) > (3 * global_var(159))) or (global_var(157) == 1))) then begin
                                        set_global_var(157, 1);
                                        set_global_var(156, 0);
                                end
                                set_global_var(160, global_var(160) + 1);
                                if ((global_var(160) % 6) == 0) then begin
                                        set_global_var(155, global_var(155) + 1);
                                end
                        end
                end
        end
end