Apparently giving info to others brings me bad luck, so back to the basics.
I'm making a npc which becomes visible under a given condition. At this point it walks across my map and desappears.
My trouble is: if I exit the map before it reaches its final destination then my critter won't move anymore.
I started to have it moving via timed event
So far I tried to have my critter move via procedure critter, map enter, map update... I also tried to call timed event via map enter/update... Nothing. What am I doing wrong?
I'm making a npc which becomes visible under a given condition. At this point it walks across my map and desappears.
My trouble is: if I exit the map before it reaches its final destination then my critter won't move anymore.
I started to have it moving via timed event
Code:
procedure timed_event_p_proc begin
if( self_visible ) then
if (((critter_state(self_obj) bwand DAM_KNOCKED_DOWN) == FALSE)
and (not(combat_is_initialized)))and (fixed_param == 1) then begin
if (tile_num(self_obj) == 25902) then begin
animate_move_to_tile(25324);
end
else if (tile_num(self_obj) == 25324) then begin
animate_move_to_tile(22131);
end
else if (tile_num(self_obj) == 22131) then begin
animate_move_to_tile(15529);
end
else if (tile_num(self_obj) == 15529) then begin
animate_move_to_tile(9129);
end
end
add_timer_event(self_obj,game_ticks(6),1);
end
So far I tried to have my critter move via procedure critter, map enter, map update... I also tried to call timed event via map enter/update... Nothing. What am I doing wrong?