Medications and effects

The stock medications, every premade effect, and how to add your own.

In-development version. These docs cover the testing build of Prescriptions. The official release is still documented on the GitBook linked in its README.

Every medication is an inventory item with an entry in the catalog. The catalog says what it costs, how many doses a bottle holds, what effect it plays, whether it is controlled, and what it takes to bottle it.

The stock catalog

MedicationEffectLastsPriceDosesControlled
Pillbox Patch Kitclearinjuries30s5003
Redwood Relief 10 MGsmokey25s6003
Stretchyum 100 MGgingey120s4003
Chiliad Burn 50 MGfire35s3503
Mollis 50 MGarmor30s5003
Zombix 250 MGdrunk15s5003
Willie's Butt Drainsmokey10s5003
Space Cadet 100 MGorbit20s7503Yes
Maze Nap 10 MGsedating40s3003
Humane Orbitals 150 MGorbit25s6503Yes
Up-n-Atom Tabs 20 MGwired45s5503Yes
Vinewood Glow 80 MGeuphoria60s4803
Altruist Crystal 5 MGwired30s7003Yes
Breeze Easy Inhaler 90 MCGstamina60s4204
ClotStop Stripsclearbleeds30s3503
Pillbox Mend 400 MGhealth60s6503
Del Perro Calm 5 MGmellow90s6003Yes
Beach Boost D3 1000 IUrefreshing20s1505
Eagle Eye Drops 15 MLbrighteyed60s3804
Cluck Chews 200 MGcaloriedense45s2503
Cold Crusher Tabletshealth40s3004
Steady Heart 25 MGarmor45s5203
Alta Amoxi 500 MGhealth45s4503
AdrenaJet Auto-Injectorhealth20s9001
Weazel Wake 25 MGwired30s2003

The price is for a bottle with its standard number of doses. A script written for more or fewer doses costs in proportion, unless you turn that off under The till.

Recipes are stock-room ingredients: an empty bottle plus a mix of pill binder, Humane Labs extract, Redwood leaf, ginger root, Chiliad chili, Sprunk syrup, and meteorite powder. All of it is delivered on supply runs.

Controlled medications are the five marked above. They can be gated by rank for writing and for mixing, they do not get refills, and a forged or flagged script for one pings the dispatch jobs.

What each medication has

On the The meds page every bottle has these fields.

FieldWhat it does
Name on the labelThe display name
How it feelsThe effect it plays when taken
Shelf groupThe group it sits in on the cabinet and the lists
One-line descriptionShown to the doctor when they pick the bottle
WarningA short caution shown with the bottle
Take animationPill, liquid, inhaler or bandage
Price at the counterThe list price for a standard bottle
Doses in the bottleHow many uses a bottle holds
Most a doctor can writeThe most doses one script can ask for
How long a dose lastsEffect length in seconds
StrengthOnly changes the armor and health effects. 0 leaves it alone
Controlled medicationMarks the paper as controlled, so the controlled medication ranks on Who can do what apply
Item in their pocketsThe inventory item the bottle becomes
What goes in the bottleThe recipe, taken from the stock room

Premade effects

Pick any of these as a medication's effect. Display names live in locales/en.json under Effects.Labels.

IdNameIdName
arepainLay-FlatiummellowMaze Bank Naptime
smokeyTrevor Lung TreatwiredUp-n-Atom Wired
lsdBarry Vision BlendeuphoriaVinewood Glow
fireworksPatriot Popper PackbaldingLester Hair Solution
staminaEgoChaser I.V.brighteyedHeadlight Headache
armorMollis Body ArmorcaloriedenseCluckin Bell Bulk-Up
healthBand-Aid BonanzaelectrifyingShock Jock Juice
gingeyStretchyosisglowieRadAway Lite
clearinjuriesOuch Be GoneparanoiaThey All Know
clearbleedsBleed Be GonerefreshingSprunk Splashback
drunkPißwasser HangoversedatingMaze Nap Sedate
orbitSpace CadetioumseizureShake N Bake
birdseyeBlaine County Drone CamshrinkingAnt-Man Aspirin
fireHotbox HazardslipperyBanana Peel Boost
squeekerRat Pack RuckusthirdpersonsyndromeCamera Crew Catastrophe
upsidedownTopsy Turvy RX

Pharmacists can pick any premade or custom effect when bottling, within the strength limits you set under Overdose and bottling. The Effects quality setting on the same page decides how much each effect shows. Off keeps only the gameplay part (healing, armor, stamina), Low adds screen grade and camera work, High adds particles, the ground ring and the heartbeat.

Add your own medication

The simple path, in this resource

  1. Create the item in your inventory, with an image named after it
  2. Open /setupprescriptions, go to The meds, and add a bottle with the same item name
  3. Restart the inventory and this resource

A custom effect

  1. Write the effect in resource/open/client/custom_effects.lua:
RegisterCustomEffect('myglow', 'Neon Glow', function(durationSec, strength)
    EffectKit.Timecycle('Bloom', 0.6, { totalMs = durationSec * 1000 })
end)

The file lists the EffectKit helpers in its header. They clean themselves up on a new dose, a death and a resource stop, and they follow the Effects quality setting.

  1. Register the same id and label in resource/open/server/custom_effects.lua, so bottling lists it:
RegisterCustomEffect('myglow', 'Neon Glow')
  1. Pick myglow as the effect on a medication

Do not reuse a premade id, or stop and overdose. Those are refused. Once any custom effect exists, the bottling picker splits into Premade and Custom lists.

From another resource

You can register both at runtime with no restart. Put these in a shared script so they run on the client and the server, and start MrNewbPrescriptions first.

exports.MrNewbPrescriptions:RegisterEffect('myglow', 'Neon Glow', function(durationSec, strength)
    -- client only; the server keeps the label for the bottling list
end)

exports.MrNewbPrescriptions:RegisterPrescription('glowtabs', {
    name = 'Glow Tabs',
    uses = 3,
    maxPrescriptionDoses = 50,
    price = 400,
    category = 'Other',
    form = 'pill',
    description = 'Glows.',
    icon = 'fa-solid fa-flask',
    effect = 'myglow',
    duration = 20,
    recipe = { { item = 'emptybottle', count = 1 } },
})

name is required. Registering an id that already exists updates the fields you pass. The glowtabs item still has to exist in your inventory, and its use is registered for you. You can skip RegisterEffect and set effect = 'smokey' or any premade id. Set controlled = true to make it a controlled medication.

RegisterPrescription only adds a catalog entry. To hand a player the actual medication, see CreatePrescription in the server exports.

On this page