ArekBalcerzak
It Wandered In From the Wastes
I have got problem with script. I want to make animation, when dude_obj will be on spatial hex then gang member will comes to dude_obj and punch him. Then dude_obj will pass out and wake up in the basement. My problem is that when dude_obj stands on sptatial hex he can still walks where he can. This i s a unfinished script of Gang member who will punch dude_obj:
#include "..\headers\define.h"
#define NAME SCRIPT_AALOBUZ
#include "..\headers\command.h"
/* Standard Script Procedures */
procedure start;
procedure talk_p_proc;
procedure critter_p_proc;
#define LVAR_Herebefore (4)
#define LVAR_Hostile (5)
#define LVAR_Personal_Enemy (6)
variable Only_Once:=0;
procedure start begin
end
procedure talk_p_proc begin
end
procedure critter_p_proc begin
if (global_var(GVAR_STOISZ) == 1) then begin
animate_move_obj_to_tile(self_obj,26922,0);
set_global_var(GVAR_STOISZ,2);
end else
if (global_var(GVAR_STOISZ) == 2) then begin
reg_anim_begin();
reg_anim_animate(self_obj, ANIM_throw_punch, -1);
reg_anim_animate(dude_obj, ANIM_fall_back, -1);
reg_anim_end();
end
end
and this is a script of spatial hex:
#include "..\headers\define.h"
#define NAME SCRIPT_AASPA
#include "..\headers\command.h"
procedure spatial_p_proc;
procedure start;
#define LVAR_herebefore (0)
procedure start begin
end
procedure spatial_p_proc begin
if ( (source_obj == dude_obj) and (local_var(LVAR_herebefore) == 0) ) then begin
inc_local_var(LVAR_herebefore);
float_msg(dude_obj,"LJ ty kurwo masz się odpierdolić od żony Fletchera! ",2);
set_global_var(GVAR_STOISZ,1);
end
end
Please anybody help me with that i will appreciate that.
#include "..\headers\define.h"
#define NAME SCRIPT_AALOBUZ
#include "..\headers\command.h"
/* Standard Script Procedures */
procedure start;
procedure talk_p_proc;
procedure critter_p_proc;
#define LVAR_Herebefore (4)
#define LVAR_Hostile (5)
#define LVAR_Personal_Enemy (6)
variable Only_Once:=0;
procedure start begin
end
procedure talk_p_proc begin
end
procedure critter_p_proc begin
if (global_var(GVAR_STOISZ) == 1) then begin
animate_move_obj_to_tile(self_obj,26922,0);
set_global_var(GVAR_STOISZ,2);
end else
if (global_var(GVAR_STOISZ) == 2) then begin
reg_anim_begin();
reg_anim_animate(self_obj, ANIM_throw_punch, -1);
reg_anim_animate(dude_obj, ANIM_fall_back, -1);
reg_anim_end();
end
end
and this is a script of spatial hex:
#include "..\headers\define.h"
#define NAME SCRIPT_AASPA
#include "..\headers\command.h"
procedure spatial_p_proc;
procedure start;
#define LVAR_herebefore (0)
procedure start begin
end
procedure spatial_p_proc begin
if ( (source_obj == dude_obj) and (local_var(LVAR_herebefore) == 0) ) then begin
inc_local_var(LVAR_herebefore);
float_msg(dude_obj,"LJ ty kurwo masz się odpierdolić od żony Fletchera! ",2);
set_global_var(GVAR_STOISZ,1);
end
end
Please anybody help me with that i will appreciate that.