![]() | This is the transcript of a script file, which runs certain tasks in the game upon execution. |
---|
Details | |
---|---|
Type | Decompiled script |
SCRIPTS.LST comment | Brotherhood footlockers |
MSG file | N/A |
procedure start;
procedure pickup_p_proc;
procedure use_skill_on_p_proc;
variable Test;
procedure start
begin
if (script_action == 8) then begin
call use_skill_on_p_proc;
end
else begin
if (script_action == pickup_p_proc) then begin
call pickup_p_proc;
end
end
end
procedure pickup_p_proc
begin
call use_skill_on_p_proc;
end
procedure use_skill_on_p_proc
begin
if (global_var(250) == 0) then begin
Test := roll_vs_skill(dude_obj, 10, 0);
if (action_being_used == 10) then begin
if (not(is_success(Test))) then begin
script_overrides;
if (is_critical(Test)) then begin
set_global_var(250, 1);
display_msg(message_str(766, 181));
end
else begin
set_local_var(0, local_var(0) + 1);
if (local_var(0) > 2) then begin
set_global_var(250, 1);
display_msg(message_str(766, 181));
end
else begin
display_msg(message_str(766, 180));
end
end
end
end
end
end