xisailuo
Пользователь Регистрация: Авг. 2004
Всего: 19 сообщений
|
#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? (Edited by xisailuo at 17:02 - 18 Aug., 2004) (Addition of 18:26 - 18 Aug., 2004.) #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
|