Skip to content

Example Breakdown: 7 Special-Mechanic Customers in RestoredUnusedNPCs ​

Alongside Billy's 4-act arc, RestoredUnusedNPCsMod.cs implements 7 standalone customers showcasing distinct subsystems:

  1. Greytide Scavenger (greytide): calls StoreClientFactionSetup.InitScav(sc) and wholesales a stun_baton, glock_receiver, and sec_keycard at -RNG.GetRandomInt(15, 25) discount.
  2. Blood Cultist (cultistTrailer): uses bubbleColor = "dark", pays +35% markup for blood_bag and blue_blood_bag, and enforces CHECK_EXPIRED.
  3. Revolutionary Agitator (revManifesto): uses StoreClientFactionSetup.InitRev(sc), carries a 50 credit wanted bounty, and features a 4-page customOnArrestDialogue confrontation.
  4. Withdrawal Addict (addictGeneralTrailer): hooks sc.onItemAddedToWeighted to interject ("That's the stuff!") the moment a "SUBSTANCE" or "NARCOTIC" item touches the weighing scale.
  5. Lower Levels Chemist (trailerChemist): sets CanExposeChem = true and wholesales 4x dream_dust + 2x fanta_pill at 20% off.
  6. Underground Arms Dealer (trailerWeaponSeller): tracks arms_dealer_met in save data to distinguish first-visit introduction lines from repeat-customer dialogue, wholesaling 2x glock_receiver, smoke_grenade, flashbang_grenade, and satchel at 20% off.
  7. Armed Militiaman (gunBuyerTrader): brings a 450 credit budget for "FIREARM" and "WEAPON" items while enforcing both CHECK_RUST and CHECK_DENTED.

Custom NPC Framework Documentation