Medications and effects
The stock medications, every premade effect, and how to add your own.
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
| Medication | Effect | Lasts | Price | Doses | Controlled |
|---|---|---|---|---|---|
| Pillbox Patch Kit | clearinjuries | 30s | 500 | 3 | |
| Redwood Relief 10 MG | smokey | 25s | 600 | 3 | |
| Stretchyum 100 MG | gingey | 120s | 400 | 3 | |
| Chiliad Burn 50 MG | fire | 35s | 350 | 3 | |
| Mollis 50 MG | armor | 30s | 500 | 3 | |
| Zombix 250 MG | drunk | 15s | 500 | 3 | |
| Willie's Butt Drain | smokey | 10s | 500 | 3 | |
| Space Cadet 100 MG | orbit | 20s | 750 | 3 | Yes |
| Maze Nap 10 MG | sedating | 40s | 300 | 3 | |
| Humane Orbitals 150 MG | orbit | 25s | 650 | 3 | Yes |
| Up-n-Atom Tabs 20 MG | wired | 45s | 550 | 3 | Yes |
| Vinewood Glow 80 MG | euphoria | 60s | 480 | 3 | |
| Altruist Crystal 5 MG | wired | 30s | 700 | 3 | Yes |
| Breeze Easy Inhaler 90 MCG | stamina | 60s | 420 | 4 | |
| ClotStop Strips | clearbleeds | 30s | 350 | 3 | |
| Pillbox Mend 400 MG | health | 60s | 650 | 3 | |
| Del Perro Calm 5 MG | mellow | 90s | 600 | 3 | Yes |
| Beach Boost D3 1000 IU | refreshing | 20s | 150 | 5 | |
| Eagle Eye Drops 15 ML | brighteyed | 60s | 380 | 4 | |
| Cluck Chews 200 MG | caloriedense | 45s | 250 | 3 | |
| Cold Crusher Tablets | health | 40s | 300 | 4 | |
| Steady Heart 25 MG | armor | 45s | 520 | 3 | |
| Alta Amoxi 500 MG | health | 45s | 450 | 3 | |
| AdrenaJet Auto-Injector | health | 20s | 900 | 1 | |
| Weazel Wake 25 MG | wired | 30s | 200 | 3 |
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.
| Field | What it does |
|---|---|
| Name on the label | The display name |
| How it feels | The effect it plays when taken |
| Shelf group | The group it sits in on the cabinet and the lists |
| One-line description | Shown to the doctor when they pick the bottle |
| Warning | A short caution shown with the bottle |
| Take animation | Pill, liquid, inhaler or bandage |
| Price at the counter | The list price for a standard bottle |
| Doses in the bottle | How many uses a bottle holds |
| Most a doctor can write | The most doses one script can ask for |
| How long a dose lasts | Effect length in seconds |
| Strength | Only changes the armor and health effects. 0 leaves it alone |
| Controlled medication | Marks the paper as controlled, so the controlled medication ranks on Who can do what apply |
| Item in their pockets | The inventory item the bottle becomes |
| What goes in the bottle | The 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.
| Id | Name | Id | Name |
|---|---|---|---|
arepain | Lay-Flatium | mellow | Maze Bank Naptime |
smokey | Trevor Lung Treat | wired | Up-n-Atom Wired |
lsd | Barry Vision Blend | euphoria | Vinewood Glow |
fireworks | Patriot Popper Pack | balding | Lester Hair Solution |
stamina | EgoChaser I.V. | brighteyed | Headlight Headache |
armor | Mollis Body Armor | caloriedense | Cluckin Bell Bulk-Up |
health | Band-Aid Bonanza | electrifying | Shock Jock Juice |
gingey | Stretchyosis | glowie | RadAway Lite |
clearinjuries | Ouch Be Gone | paranoia | They All Know |
clearbleeds | Bleed Be Gone | refreshing | Sprunk Splashback |
drunk | Pißwasser Hangover | sedating | Maze Nap Sedate |
orbit | Space Cadetioum | seizure | Shake N Bake |
birdseye | Blaine County Drone Cam | shrinking | Ant-Man Aspirin |
fire | Hotbox Hazard | slippery | Banana Peel Boost |
squeeker | Rat Pack Ruckus | thirdpersonsyndrome | Camera Crew Catastrophe |
upsidedown | Topsy 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
- Create the item in your inventory, with an image named after it
- Open
/setupprescriptions, go to The meds, and add a bottle with the same item name - Restart the inventory and this resource
A custom effect
- 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.
- Register the same id and label in
resource/open/server/custom_effects.lua, so bottling lists it:
RegisterCustomEffect('myglow', 'Neon Glow')- Pick
myglowas 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.
