Project Zomboid

Project Zomboid

Superb Survivors!
 This topic has been pinned, so it's probably important
nolanritchie  [developer] 25 Nov, 2019 @ 6:33am
Map / Modding Info
For those who want to make mods / maps that have unique / pre-set Survivors, it should now be possible for you to add them via your own mod!

Simply create a lua file in your mods "media/lua/clinet/" folder.
Then inside the file start by entering:
"if( not PresetSpawns ) then PresetSpawns = {} end"

That line will create the table for unique survivors or just do nothing if it has already been loaded by SS mod.

Then you can just add lines declaring unique survivors in the same way you see used in SS file called "medial/lua/client/2_Other/presetspawns.lua"

Look for that above file for many examples how to add a unique spawn.

for example:

PresetSpawns[#PresetSpawns+1] = {Suit="Police", Name = "Deputy Douglus", X = 10635, Y = 10411, Z = 0 , Weapon = getWeapon("Base.Pistol"), Orders = "Standing Ground", isHostile = false, PerkName="Aiming",PerkLevel=5,Greeting="I suppose your here for the guns...take only what you need."};

Most of the values in this example are optional. Basically the only mandatory values would be x,y,z and Name






If you want to add variations to what clothing / suits random spawns will have, you can send me (or even just make a mod with the following in an LUA file):

here is 3 examples:

SurvivorRandomSuits["Common"]["Basic1"] = {"Base.Hat_BaseballCapBlue", "Base.Shirt_HawaiianRed", "Base.TrousersMesh_DenimLight", "Base.Shoes_Black"}

SurvivorRandomSuits["Normal"]["Hunter1"] = {"Base.Hat_BonnieHat_CamoGreen", "Base.Vest_Hunting_Camo", "Base.Trousers_CamoGreen", "Base.Shoes_BlackBoots"}

SurvivorRandomSuits["Rare"]["Army1"] = {"Base.Hat_BeretArmy", "Base.Jacket_CoatArmy", "Base.Trousers_ArmyService", "Base.Shoes_ArmyBoots"}


"SurvivorRandomSuits" is just the name of the table that I picked
the part in the next brackets states the rarity of that costume, you can choose Common, Normal or Rare.

The next part in side the square [ ] brackets is just the name of the costume, you can pick it, but it should be unique name. so if you want multiple variations to the suit you can make multiple lines and just add number to the name like
"Doctor1"
"Doctor2"
"Doctor3"
etc...

there is no need to include all peices of clothing like some could exlude hat, or pants w/e
you can also add backpacks

if you want to create a MOD with these suit variations you will need to add the following to the LUA file above where you put your above lines of suits:

if not SurvivorRandomSuits then
SurvivorRandomSuits = {}
SurvivorRandomSuits["Common"] = {} -- 75%
SurvivorRandomSuits["Normal"] = {} -- 20%
SurvivorRandomSuits["Rare"] = {} -- 5%
end





If you have troubles or questions post them below
Last edited by nolanritchie; 25 Nov, 2019 @ 11:09am
< >
Showing 1-15 of 66 comments
@nolanritchie How do you want the tables laid out? Just got back from college so I should be able to arrange them all tonight + add some more if it looks a little bare
nolanritchie  [developer] 25 Nov, 2019 @ 11:11am 
Originally posted by ThatGuyRandom (TGR):
@nolanritchie How do you want the tables laid out? Just got back from college so I should be able to arrange them all tonight + add some more if it looks a little bare


like this please:
SurvivorRandomSuits["Common"]["Basic1"] = {"Base.Hat_BaseballCapBlue", "Base.Shirt_HawaiianRed", "Base.TrousersMesh_DenimLight", "Base.Shoes_Black"}

SurvivorRandomSuits["Normal"]["Hunter1"] = {"Base.Hat_BonnieHat_CamoGreen", "Base.Vest_Hunting_Camo", "Base.Trousers_CamoGreen", "Base.Shoes_BlackBoots"}

SurvivorRandomSuits["Rare"]["Army1"] = {"Base.Hat_BeretArmy", "Base.Jacket_CoatArmy", "Base.Trousers_ArmyService", "Base.Shoes_ArmyBoots"}
SurvivorRandomSuits["Rare"]["Bride1"] = {"Base.WeddingDress", "Base.Shirt_FormalWhite", "Base.Socks_Long", "Base.Shoes_Black"}
SurvivorRandomSuits["Rare"]["Groom1"] = {"Base.Tie_BowTieFull", "Base.Gloves_WhiteTINT", "Base.WeddingJacket", "Base.Shirt_FormalWhite", "Base.Trousers_Suit", "Base.Socks_Long", "Shoes_Black"}
SurvivorRandomSuits["Rare"]["Priest1"] = {"Base.Shirt_Priest", "Base.Trousers_Suit", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Normal"]["ShopGeneric1"] = {"Base.Tshirt_DefaultDECAL", "Base.Apron_Black", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Rare"]["ShopSpiffo1"] = {"Base.Tshirt_BusinessSpiffo", "Base.Apron_Spiffos", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Rare"]["SwimwearF1"] = {"Base.Bikini_Pattern01"}
SurvivorRandomSuits["Rare"]["SwimwearM1"] = {"Base.SwimTrunks_Blue"}
SurvivorRandomSuits["Normal"]["Athlete1"] = {"Base.Shorts_ShortSport", "Base.Tshirt_Sport", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Normal"]["Student1"] = {"Base.Tshirt_DefaultDECAL", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT", "Base.Jacket_Varsity"}
SurvivorRandomSuits["Common"]["Dress01"] = {"Base.Dress_Normal", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Common"]["Dress02"] = {"Base.Hat_Beret", "Base.Dress_ Knees", “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Dress03"] = {"Base.Dress_Long", “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Skirt01"] = {"Base.Skirt_Normal", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Skirt02"] = {"Base.Skirt_Knees", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”, “Base.Hat_Beret”}
SurvivorRandomSuits["Common"]["Skirt03"] = {"Base.Skirt_Long", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Normal"]["OfficeM1"] = {"Base.Tie_Full", “Base.Shirt_FormalWhite”, “Base.Trousers_Suit”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Normal"]["OfficeF1"] = {"Base.Shirt_FormalWhite", “Base.Skirt_Normal”, “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Normal"]["Biker1"] = {"Base.Hat_Bandana", “Base.Glasses_Aviators”, “Base.Jacket_Black”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Rare"]["Prepper1"] = {"Base.Hat_GasMask", “Base.HoodieUP_GreenTINT”, “Base.Vest_BulletCivilian”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Generic01"] = {"Base.HoodieDOWN_GreyTINT”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Common"]["Generic02"] = {"Base.Tshirt_DefaultDECAL”, “Base.Jumper_DiamondPatternTINT”, “Base.Glasses_Normal”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}
SurvivorRandomSuits["Common"]["Generic03"] = {"Base.Jumper_RoundNeck”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}
SurvivorRandomSuits["Common"]["Generic04"] = {"Base.Tshirt_DefaultDECAL”, "Base.TrousersMesh_DenimLight", “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}
SurvivorRandomSuits["Rare"]["Nurse1"] = {"Base.Hat_SurgicalMask_Blue”, “Base.Tshirt_Scrubs”, “Base.Trousers_Scrubs”, “Base.Socks_Ankle”, “Base.Shoes_Black”}

Here's all the ones I said in the other discussion for now
Last edited by ♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥; 25 Nov, 2019 @ 1:27pm
nolanritchie  [developer] 25 Nov, 2019 @ 2:17pm 
Looks good ill put in in when i can. Feel free to update it anytime.
Arsenal[26] 25 Nov, 2019 @ 4:22pm 
Nolan, Thanks for unlocking Preset Spawns for custom maps.... I remember asking about this awhile back as you were starting your new job!!! Happy to report that it works.... but ONLY if I add my Presets to the original lua file in ...lua/client/2_Other folder of the SuperbSurvivor mod itself... When I simply make a mod and place my lua file in the client folder, they do not appear... Do I need to make a 2_Other folder ??? I also tried adding my file to my map in the client folder... no dice either...

edit... I tried it with and without :

if(isModEnabled("SuperbSurvivors"))
if( not PresetSpawns ) then PresetSpawns = {} end
*** my lines in here ***
end

Edit edit... putting in 2_Other folder makes no difference...


Also, to avoid some confusion as I initially had, the option is sort of a double negative... Disable needs to be set to [OFF]... some may read it as Preset NPCs are [OFF]... Maybe just have it read... PRESETS [ON/OFF] ??

Also also... did you intentionally disable Following Distance keybinding? just wondering....
Last edited by Arsenal[26]; 25 Nov, 2019 @ 4:29pm
nolanritchie  [developer] 25 Nov, 2019 @ 4:58pm 
Originally posted by Arsenal26:
Nolan, Thanks for unlocking Preset Spawns for custom maps.... I remember asking about this awhile back as you were starting your new job!!! Happy to report that it works.... but ONLY if I add my Presets to the original lua file in ...lua/client/2_Other folder of the SuperbSurvivor mod itself... When I simply make a mod and place my lua file in the client folder, they do not appear... Do I need to make a 2_Other folder ??? I also tried adding my file to my map in the client folder... no dice either...

edit... I tried it with and without :

if(isModEnabled("SuperbSurvivors"))
if( not PresetSpawns ) then PresetSpawns = {} end
*** my lines in here ***
end

Edit edit... putting in 2_Other folder makes no difference...


Also, to avoid some confusion as I initially had, the option is sort of a double negative... Disable needs to be set to [OFF]... some may read it as Preset NPCs are [OFF]... Maybe just have it read... PRESETS [ON/OFF] ??

Also also... did you intentionally disable Following Distance keybinding? just wondering....


probably had sometihg to do with load order.
so i just made some chages so that it only processes the table on game load. so now it should not matter whos file gets loaded first.

i shouldbnt hurt but you wouldnt really need the ifModEnabled condition, even if survivors not enabled, there is no harm in declaring that table

try again now witth your own file in your own mod.


just need a file with:
if( not PresetSpawns ) then PresetSpawns = {} end
--then your lines here:
PresetSpawns[#PresetSpawns+1] = {Suit = "Farmer", Greeting = "I bet you could use someone who knows about farming. If you make it worth my while I just might go with you.",isFemale = false, PerkName="Farming",PerkLevel=5, Name = "Farmer Phil", X = 12059, Y = 7363, Z = 0 , Weapon = "Base.Hammer", Orders = "Patrol", isHostile = false, Patrolling=true, PX=0,PY=-4};
Arsenal[26] 25 Nov, 2019 @ 7:06pm 
That worked... gonna pour a double bourbon to sit and populate my map now... This is great!! can't tell ya how much I've wanted to get to this part... Cheers!
CampinKarl 26 Nov, 2019 @ 1:24am 
Added cops and bandits! UNISEX

SurvivorRandomSuits["Normal"]["Cop1"] = {"Base.Hat_Police", "Base.Jacket_Police", "Base.Trousers_Police", "Base.Shirt_PoliceBlue", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Normal"]["Ranger1"] = {"Base.Hat_Ranger", "Base.Jacket_Ranger", "Base.Trousers_Ranger", "Base.Shirt_Ranger", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Normal"]["Deputy1"] = {"Base.Jacket_Police", "Base.Trousers_PoliceGrey", "Base.Shirt_PoliceGrey", "Base.Socks_Ankle", "Base.Shoes_Black"}

SurvivorRandomSuits["Normal"]["Bandit1"] = {"Base.Hat_BalaclavaFull", "Base.Jacket_Padded", "Base.Trousers_CamoUrban", "Base.Tshirt_Rock", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Normal"]["Bandit2"] = {"Base.Hat_BalaclavaFull", "Base.HoodieUP_WhiteTINT", "Base.Trousers", "Tshirt_DefaultDECAL", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Rare"]["Bandit3"] = {"Base.Hat_GasMask", "Base.Vest_Hunting_Camo", "Base.Trousers_CamoGreen", "Base.Shoes_BlackBoots"}


SurvivorRandomSuits["Rare"]["Prisoner1"] = {"Base.Boilersuit_Prisoner", "Base.Shoes_Black"}

SurvivorRandomSuits["Normal"]["Worker1"] = {"Base.Shirt_Workman", "Base.Vest_HighViz", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Normal"]["Student1"] = {"Base.Shorts_ShortSport", "Base.Tshirt_Sport", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
Last edited by CampinKarl; 26 Nov, 2019 @ 5:28am
nolanritchie  [developer] 26 Nov, 2019 @ 4:05am 
Originally posted by ThatGuyRandom (TGR):
SurvivorRandomSuits["Rare"]["Bride1"] = {"Base.WeddingDress", "Base.Shirt_FormalWhite", "Base.Socks_Long", "Base.Shoes_Black"}
SurvivorRandomSuits["Rare"]["Groom1"] = {"Base.Tie_BowTieFull", "Base.Gloves_WhiteTINT", "Base.WeddingJacket", "Base.Shirt_FormalWhite", "Base.Trousers_Suit", "Base.Socks_Long", "Shoes_Black"}
SurvivorRandomSuits["Rare"]["Priest1"] = {"Base.Shirt_Priest", "Base.Trousers_Suit", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Normal"]["ShopGeneric1"] = {"Base.Tshirt_DefaultDECAL", "Base.Apron_Black", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Rare"]["ShopSpiffo1"] = {"Base.Tshirt_BusinessSpiffo", "Base.Apron_Spiffos", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Rare"]["SwimwearF1"] = {"Base.Bikini_Pattern01"}
SurvivorRandomSuits["Rare"]["SwimwearM1"] = {"Base.SwimTrunks_Blue"}
SurvivorRandomSuits["Normal"]["Athlete1"] = {"Base.Shorts_ShortSport", "Base.Tshirt_Sport", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Normal"]["Student1"] = {"Base.Tshirt_DefaultDECAL", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT", "Base.Jacket_Varsity"}
SurvivorRandomSuits["Common"]["Dress01"] = {"Base.Dress_Normal", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Common"]["Dress02"] = {"Base.Hat_Beret", "Base.Dress_ Knees", “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Dress03"] = {"Base.Dress_Long", “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Skirt01"] = {"Base.Skirt_Normal", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Skirt02"] = {"Base.Skirt_Knees", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”, “Base.Hat_Beret”}
SurvivorRandomSuits["Common"]["Skirt03"] = {"Base.Skirt_Long", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Normal"]["OfficeM1"] = {"Base.Tie_Full", “Base.Shirt_FormalWhite”, “Base.Trousers_Suit”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Normal"]["OfficeF1"] = {"Base.Shirt_FormalWhite", “Base.Skirt_Normal”, “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Normal"]["Biker1"] = {"Base.Hat_Bandana", “Base.Glasses_Aviators”, “Base.Jacket_Black”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Rare"]["Prepper1"] = {"Base.Hat_GasMask", “Base.HoodieUP_GreenTINT”, “Base.Vest_BulletCivilian”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Generic01"] = {"Base.HoodieDOWN_GreyTINT”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Common"]["Generic02"] = {"Base.Tshirt_DefaultDECAL”, “Base.Jumper_DiamondPatternTINT”, “Base.Glasses_Normal”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}
SurvivorRandomSuits["Common"]["Generic03"] = {"Base.Jumper_RoundNeck”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}
SurvivorRandomSuits["Common"]["Generic04"] = {"Base.Tshirt_DefaultDECAL”, "Base.TrousersMesh_DenimLight", “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}
SurvivorRandomSuits["Rare"]["Nurse1"] = {"Base.Hat_SurgicalMask_Blue”, “Base.Tshirt_Scrubs”, “Base.Trousers_Scrubs”, “Base.Socks_Ankle”, “Base.Shoes_Black”}

Here's all the ones I said in the other discussion for now
ya ,,man we made a big oversignt here, we have to keep femail stiuff separate.
Originally posted by nolanritchie:
Originally posted by ThatGuyRandom (TGR):
SurvivorRandomSuits["Rare"]["Bride1"] = {"Base.WeddingDress", "Base.Shirt_FormalWhite", "Base.Socks_Long", "Base.Shoes_Black"}
SurvivorRandomSuits["Rare"]["Groom1"] = {"Base.Tie_BowTieFull", "Base.Gloves_WhiteTINT", "Base.WeddingJacket", "Base.Shirt_FormalWhite", "Base.Trousers_Suit", "Base.Socks_Long", "Shoes_Black"}
SurvivorRandomSuits["Rare"]["Priest1"] = {"Base.Shirt_Priest", "Base.Trousers_Suit", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Normal"]["ShopGeneric1"] = {"Base.Tshirt_DefaultDECAL", "Base.Apron_Black", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Rare"]["ShopSpiffo1"] = {"Base.Tshirt_BusinessSpiffo", "Base.Apron_Spiffos", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Rare"]["SwimwearF1"] = {"Base.Bikini_Pattern01"}
SurvivorRandomSuits["Rare"]["SwimwearM1"] = {"Base.SwimTrunks_Blue"}
SurvivorRandomSuits["Normal"]["Athlete1"] = {"Base.Shorts_ShortSport", "Base.Tshirt_Sport", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Normal"]["Student1"] = {"Base.Tshirt_DefaultDECAL", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT", "Base.Jacket_Varsity"}
SurvivorRandomSuits["Common"]["Dress01"] = {"Base.Dress_Normal", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Common"]["Dress02"] = {"Base.Hat_Beret", "Base.Dress_ Knees", “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Dress03"] = {"Base.Dress_Long", “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Skirt01"] = {"Base.Skirt_Normal", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Skirt02"] = {"Base.Skirt_Knees", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”, “Base.Hat_Beret”}
SurvivorRandomSuits["Common"]["Skirt03"] = {"Base.Skirt_Long", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Normal"]["OfficeM1"] = {"Base.Tie_Full", “Base.Shirt_FormalWhite”, “Base.Trousers_Suit”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Normal"]["OfficeF1"] = {"Base.Shirt_FormalWhite", “Base.Skirt_Normal”, “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Normal"]["Biker1"] = {"Base.Hat_Bandana", “Base.Glasses_Aviators”, “Base.Jacket_Black”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Rare"]["Prepper1"] = {"Base.Hat_GasMask", “Base.HoodieUP_GreenTINT”, “Base.Vest_BulletCivilian”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Generic01"] = {"Base.HoodieDOWN_GreyTINT”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Common"]["Generic02"] = {"Base.Tshirt_DefaultDECAL”, “Base.Jumper_DiamondPatternTINT”, “Base.Glasses_Normal”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}
SurvivorRandomSuits["Common"]["Generic03"] = {"Base.Jumper_RoundNeck”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}
SurvivorRandomSuits["Common"]["Generic04"] = {"Base.Tshirt_DefaultDECAL”, "Base.TrousersMesh_DenimLight", “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}
SurvivorRandomSuits["Rare"]["Nurse1"] = {"Base.Hat_SurgicalMask_Blue”, “Base.Tshirt_Scrubs”, “Base.Trousers_Scrubs”, “Base.Socks_Ankle”, “Base.Shoes_Black”}

Here's all the ones I said in the other discussion for now
ya ,,man we made a big oversignt here, we have to keep femail stiuff separate.

Female
SurvivorRandomSuits["Rare"]["Bride1"] = {"Base.WeddingDress", "Base.Shirt_FormalWhite", "Base.Socks_Long", "Base.Shoes_Black"}
SurvivorRandomSuits["Rare"]["SwimwearF1"] = {"Base.Bikini_Pattern01"}
SurvivorRandomSuits["Common"]["Dress01"] = {"Base.Dress_Normal", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Common"]["Dress02"] = {"Base.Hat_Beret", "Base.Dress_ Knees", “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Dress03"] = {"Base.Dress_Long", “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Skirt01"] = {"Base.Skirt_Normal", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Skirt02"] = {"Base.Skirt_Knees", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”, “Base.Hat_Beret”}
SurvivorRandomSuits["Common"]["Skirt03"] = {"Base.Skirt_Long", “Base.Tshirt_DefaultTEXTURE”, “Base.Socks_Long”, “Base.Shoes_Black”}
SurvivorRandomSuits["Normal"]["OfficeF1"] = {"Base.Shirt_FormalWhite", “Base.Skirt_Normal”, “Base.Socks_Long”, “Base.Shoes_Black”}

Male
SurvivorRandomSuits["Rare"]["Groom1"] = {"Base.Tie_BowTieFull", "Base.Gloves_WhiteTINT", "Base.WeddingJacket", "Base.Shirt_FormalWhite", "Base.Trousers_Suit", "Base.Socks_Long", "Shoes_Black"}
SurvivorRandomSuits["Rare"]["Priest1"] = {"Base.Shirt_Priest", "Base.Trousers_Suit", "Base.Socks_Ankle", "Base.Shoes_Black"}
SurvivorRandomSuits["Rare"]["SwimwearM1"] = {"Base.SwimTrunks_Blue"}
SurvivorRandomSuits["Normal"]["OfficeM1"] = {"Base.Tie_Full", “Base.Shirt_FormalWhite”, “Base.Trousers_Suit”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Generic02"] = {"Base.Tshirt_DefaultDECAL”, “Base.Jumper_DiamondPatternTINT”, “Base.Glasses_Normal”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}
SurvivorRandomSuits["Common"]["Generic03"] = {"Base.Jumper_RoundNeck”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}

Both
SurvivorRandomSuits["Normal"]["ShopGeneric1"] = {"Base.Tshirt_DefaultDECAL", "Base.Apron_Black", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Rare"]["ShopSpiffo1"] = {"Base.Tshirt_BusinessSpiffo", "Base.Apron_Spiffos", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Normal"]["Athlete1"] = {"Base.Shorts_ShortSport", "Base.Tshirt_Sport", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Normal"]["Student1"] = {"Base.Tshirt_DefaultDECAL", "Base.TrousersMesh_DenimLight", "Base.Socks_Ankle", "Base.Shoes_TrainerTINT", "Base.Jacket_Varsity"}
SurvivorRandomSuits["Normal"]["Biker1"] = {"Base.Hat_Bandana", “Base.Glasses_Aviators”, “Base.Jacket_Black”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Rare"]["Prepper1"] = {"Base.Hat_GasMask", “Base.HoodieUP_GreenTINT”, “Base.Vest_BulletCivilian”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, “Base.Shoes_Black”}
SurvivorRandomSuits["Common"]["Generic01"] = {"Base.HoodieDOWN_GreyTINT”, “Base.Tshirt_Rock”, “Base.TrousersMesh_DenimLight”, “Base.Socks_Ankle”, "Base.Shoes_TrainerTINT"}
SurvivorRandomSuits["Common"]["Generic04"] = {"Base.Tshirt_DefaultDECAL”, "Base.TrousersMesh_DenimLight", “Base.Socks_Ankle”, “Base.Shoes_TrainerTINT”}
SurvivorRandomSuits["Rare"]["Nurse1"] = {"Base.Hat_SurgicalMask_Blue”, “Base.Tshirt_Scrubs”, “Base.Trousers_Scrubs”, “Base.Socks_Ankle”, “Base.Shoes_Black”}

Here man, I sorted them into the categories for you lol
CampinKarl 26 Nov, 2019 @ 5:30am 
Originally posted by Arsenal26:
That worked... gonna pour a double bourbon to sit and populate my map now... This is great!! can't tell ya how much I've wanted to get to this part... Cheers!


How did you make it work? I would like to do this for myself as well

From what I understand:

1. Make a .lua file on notepad
2. Declare "if( not PresetSpawns ) then PresetSpawns = {} end" on the start
3. Make the rest of the lines, for example:

PresetSpawns[#PresetSpawns+1] = {Suit = "Farmer", Greeting = "I bet you could use someone who knows about farming. If you make it worth my while I just might go with you.",isFemale = false, PerkName="Farming",PerkLevel=5, Name = "Farmer Phil", X = 12059, Y = 7363, Z = 0 , Weapon = "Base.Hammer", Orders = "Patrol", isHostile = false, Patrolling=true, PX=0,PY=-4};

4. End, then run PZ
5. It's supposed to work? :diplomacy:
nolanritchie  [developer] 26 Nov, 2019 @ 5:38am 
Originally posted by CampinKarl:
Originally posted by Arsenal26:
That worked... gonna pour a double bourbon to sit and populate my map now... This is great!! can't tell ya how much I've wanted to get to this part... Cheers!


How did you make it work? I would like to do this for myself as well

From what I understand:

1. Make a .lua file on notepad
2. Declare "if( not PresetSpawns ) then PresetSpawns = {} end" on the start
3. Make the rest of the lines, for example:

PresetSpawns[#PresetSpawns+1] = {Suit = "Farmer", Greeting = "I bet you could use someone who knows about farming. If you make it worth my while I just might go with you.",isFemale = false, PerkName="Farming",PerkLevel=5, Name = "Farmer Phil", X = 12059, Y = 7363, Z = 0 , Weapon = "Base.Hammer", Orders = "Patrol", isHostile = false, Patrolling=true, PX=0,PY=-4};

4. End, then run PZ
5. It's supposed to work? :diplomacy:


yes thats right, but of course the lua file you made needs to be in a lua/client/ folder of a mod that is enabled
nolanritchie  [developer] 26 Nov, 2019 @ 7:26am 
Originally posted by Arsenal26:
That worked... gonna pour a double bourbon to sit and populate my map now... This is great!! can't tell ya how much I've wanted to get to this part... Cheers!
When your done. Feel free to post your map mod here. Ill add it as suggested mod in desc
Arsenal[26] 26 Nov, 2019 @ 11:40am 
Ok, I thought I was trippin last couple times but sure enough.... some of my Presets with isFemale = true, are actually DUDES!!!! I *did* make sure this variable was second on the order to account for clothing sets... not sure if that matters...

Edit... but sometimes they are correct, which leads me to think the variable isn't being checked on spawn ?
Last edited by Arsenal[26]; 26 Nov, 2019 @ 11:42am
Originally posted by Arsenal26:
Ok, I thought I was trippin last couple times but sure enough.... some of my Presets with isFemale = true, are actually DUDES!!!! I *did* make sure this variable was second on the order to account for clothing sets... not sure if that matters...

Edit... but sometimes they are correct, which leads me to think the variable isn't being checked on spawn ?
Yeah I don't believe that variable is a working function right now, the genders are completely randomised no-matter what you put as of right now hence why you find female doctors named doctor Jason in medical centres lol
< >
Showing 1-15 of 66 comments
Per page: 1530 50