#include <define.h>

//#define NAME                    SCRIPT_

#include <command.h>
//#include <ModReact.h>


variable Test;

procedure start;
#include <push.h>
procedure use_skill_on_p_proc;


procedure start
begin
	if (script_action == use_proc) then begin
		set_global_var(GVAR_RAID_LOOTING, 1);
	end
	else begin
		if (script_action == use_skill_on_proc) then begin
			call use_skill_on_p_proc;
		end
	end
end

procedure use_skill_on_p_proc
begin
	if (action_being_used == 10) then begin
		Test := roll_vs_skill(dude_obj, 10, -30);
		if (is_success(Test)) then begin
		end
		else begin
			script_overrides;
			set_global_var(GVAR_RAID_LOOTING, 1);
		end
	end
end