Thank you friend so how should i script the prep spawn?
It is a simple question that cannot be simply answered lol.
It depends on your Lua scripting knowledge.
If you haven't been introduced yet (to Lua scripting ofc), you should read some tutorials here on Bully-Board.
another doubt why don't harrington house spawn any npc i mean itsn't some save zone right
There are two answers on this particular question, you can decide which answer you'll likely to understand lol.
- SIMPLE ANSWER -Simply because R* did not make it in the first place.
Some other areas did not have population either, so it wasn't only our HQ or this Harrington House.
- DETAILED ANSWER -NPCs that spawn naturally are combination of Lua script + .DAT files (you can find that in Trigger.img). There is a population setting named '
populationdata' (indicated by '
haspopulationdata 1') within the .DAT file if the area meant to be inhabited regularly. Then, the '
populationdata' will be called in Lua script in order to control the population within a space world.
Sadly, most factions HQ (
iSaveZones.DAT,
SaveLocs.DAT,
SP_iDropS.DAT,
SP_iJockS.DAT,
SP_iPrepS.DAT, and
SP_iGrsrS.DAT) and Harrington House (
PAn_Prep.DAT and
SP_Prep_House.DAT) did not have '
populationdata'. Which means they are not supposed to have daily activities on that area.
Instead, the Dragon's Wing Comic store that we were talking about have '
populationdata' in
Store.DAT which called
ComicPopTrig. The
ComicPopTrig is later found to be active in
SStores.lua once you completed Nerd Challenge. That's why we can see some NPCs spawning there, it's still a store after all.
That may looks a little bit complex, but there are more beyond that.
And people still figuring more advanced way in area modding.