Pārlūkot izejas kodu

[added] flag for failsafe

hornguy6 1 gadu atpakaļ
vecāks
revīzija
733e122725
2 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 5 0
      locations/npcgeneratec.qsrc
  2. 5 0
      locations/npcpreservec.qsrc

+ 5 - 0
locations/npcgeneratec.qsrc

@@ -4,6 +4,11 @@
 !! You can also set their approx. home location
 !! All data produced is random so if you need a specific value you will have to overwrite it
 
+!! npcgen_lastrun is a flag to help track whether npcgeneratec or npcpreservec has been run last
+!! npcgeneratec is 1
+!! npcpreservec is 2
+npcgen_lastrun = 1
+
 !! sets sex, 0 male, 1 female, 2 female herm, 3 male herm
 npctempgsex = ARGS[0]
 

+ 5 - 0
locations/npcpreservec.qsrc

@@ -3,6 +3,11 @@
 !! {This initializes the array and acts as a gate to deny bad calls.}
 $npctemp = $ARGS[0]
 
+!! npcgen_lastrun is a flag to help track whether npcgeneratec or npcpreservec has been run last
+!! npcgeneratec is 1
+!! npcpreservec is 2
+npcgen_lastrun = 1
+
 if mid($npctemp,1,1) = 'C':
 	:npcsavebsanityloop
 	i = 0