strange questions about my scripts

Discuss the creation and scripting of new fan-made games and mods for the Fallout series of games.
Post Reply
xisailuo
SDF!
SDF!
Posts: 6
Joined: Tue Aug 17, 2004 1:19 pm

strange questions about my scripts

Post by xisailuo »

#define NAME SCRIPT_fuwochengjg
variable Only_Once:=0;



#define NPC_REACTION_TYPE REACTION_C

#include "..\headers\define.h"

#include "..\headers\command.h"





procedure start;
procedure timed_event_p_proc;
procedure old_pickup_p_proc;


procedure start begin

if anim_busy(self_obj)==false then
begin
float_msg(self_obj, "a1", FLOAT_COLOR_NORMAL);
add_timer_event(self_obj,game_ticks(5),1);
end
end




procedure old_pickup_p_proc begin
end

procedure timed_event_p_proc begin

if anim_busy(self_obj)==false then
begin
if(fixed_param == 1) then begin float_msg(self_obj, "a4", FLOAT_COLOR_NORMAL);
add_timer_event(self_obj,game_ticks(5),2);
end
add_timer_event(self_obj,game_ticks(5),2);
end if (fixed_param == 2) then begin float_msg(self_obj, "a5", FLOAT_COLOR_NORMAL);
add_timer_event(self_obj,game_ticks(5),3);
end if (fixed_param == 3) then begin float_msg(self_obj, "a6", FLOAT_COLOR_NORMAL);
end
end
----------------------------------------------------------------
I want to make a circle from "a4" to "a6" constantly,but at last npc can only say "a5",can you tell me why?
xisailuo
SDF!
SDF!
Posts: 6
Joined: Tue Aug 17, 2004 1:19 pm

Post by xisailuo »

#define NAME SCRIPT_fuwochengjg
variable Only_Once:=0;



#define NPC_REACTION_TYPE REACTION_C

#include "..\headers\define.h"

#include "..\headers\command.h"





procedure start;
procedure timed_event_p_proc;
procedure old_pickup_p_proc;


procedure start begin

if anim_busy(self_obj)==false then
begin
float_msg(self_obj, "a1", FLOAT_COLOR_NORMAL);
add_timer_event(self_obj,game_ticks(5),1);
end
end




procedure old_pickup_p_proc begin
end

procedure timed_event_p_proc begin
if anim_busy(self_obj)==false then begin
if(fixed_param == 1) then begin float_msg(self_obj, "a4", FLOAT_COLOR_NORMAL);
add_timer_event(self_obj,game_ticks(5),2);
end
if (fixed_param == 2) then begin float_msg(self_obj, "a5", FLOAT_COLOR_NORMAL);
add_timer_event(self_obj,game_ticks(5),3);
end
if (fixed_param == 3) then begin float_msg(self_obj, "a6", FLOAT_COLOR_NORMAL);
add_timer_event(self_obj,game_ticks(5),1);
end
end
end
----------------------------------------
I have corrected it
Post Reply