problem with timer

fuzzi

It Wandered In From the Wastes
Hi, I want provisionally reduce perception with hero.For example -1.
I use timer:

Code:
procedure down_1_PE begin
          set_local_var(LVAR_Pe,game_time + 2*ONE_GAME_HOUR);
          set_critter_stat(dude_obj, STAT_pe, -1);
          call Node999;
          end

Code:
if (local_var(LVAR_Pe) < game_time)  then begin
          set_critter_stat(dude_obj, STAT_pe, 1);
          end

But If I go to another map, timer stop work. So how work timer in Fallout 1 in Military Base(statement to detonation) ?? If player run out over the maps, timer work all the time. I need somethink like drugs for example. Provisionally reduce some characters. Is any way to do it?
 
1) You can place that code in player script(dud_obj.int) this is the script that is always active so will work on any map.

2)You can also use global var instead of local var and put that script on every map that you think player can get in this time.

3)You can ad this code to script of some critter and then add him to player team and make him invisible he will be on avery map with player so his script will work any time.(don't forget to destroy that critter after he is no longer needed)
 
Back
Top