So I've been recently fooling around with Fo2 Modders Pack, and stumbled upon some really cool mods in there, wich i would also like to use in Fo1. However simply grabbing the source and trying to compile it with sslc_f1.exe from dobrovik's archive renders some functions incompatible. Does anybody have an idea how to change the code to work with Fo1 and Crafty's Sfall1?
Forgot to mention sslc_f1.exe fails at game_loaded..
Code:
procedure start;
// adjust include paths if needed
#include "..\..\scripting_docs\headers\sfall.h"
#define RESULT_SUCCESS (1)
#define RESULT_FAIL (0)
procedure start begin
if game_loaded then begin
register_hook(HOOK_STEAL);
end else begin
variable
thief := get_sfall_arg,
target := get_sfall_arg,
item := get_sfall_arg,
action := get_sfall_arg,
result := RESULT_SUCCESS;
if (thief == dude_obj) then begin
display_msg(sprintf(mstr_skill(570 + result + action*2), obj_name(item)));
set_sfall_return(result);
end
end
end
Forgot to mention sslc_f1.exe fails at game_loaded..