2017-07-06 21:01:35 +08:00
|
|
|
procedure start;
|
2015-07-07 00:44:58 +07:00
|
|
|
// adjust include paths if needed
|
2017-07-06 21:01:35 +08:00
|
|
|
#include "..\..\scripting_docs\headers\sfall.h"
|
2015-07-07 00:44:58 +07:00
|
|
|
|
|
|
|
|
#define RESULT_SUCCESS (1)
|
|
|
|
|
#define RESULT_FAIL (0)
|
2017-07-06 21:01:35 +08:00
|
|
|
|
|
|
|
|
procedure start begin
|
|
|
|
|
if game_loaded then begin
|
|
|
|
|
register_hook(HOOK_STEAL);
|
|
|
|
|
end else begin
|
2015-07-07 00:44:58 +07:00
|
|
|
variable
|
|
|
|
|
thief := get_sfall_arg,
|
|
|
|
|
target := get_sfall_arg,
|
|
|
|
|
item := get_sfall_arg,
|
|
|
|
|
action := get_sfall_arg,
|
|
|
|
|
result := RESULT_SUCCESS;
|
2017-07-06 21:01:35 +08:00
|
|
|
|
|
|
|
|
if (thief == dude_obj) then begin
|
|
|
|
|
display_msg(sprintf(mstr_skill(570 + result + action*2), obj_name(item)));
|
|
|
|
|
set_sfall_return(result);
|
|
|
|
|
end
|
|
|
|
|
end
|
2015-07-07 00:44:58 +07:00
|
|
|
end
|