Tutorial / Settings
Drugs
Make and edit RP drugs: what each one does to health, speed, jumps and damage, and the high's screen effect.
What it does
Drugs are RP items players eat or use. Each drug can heal or hurt, boost speed and jumps, give damage resistance, and give a high with its own screen effect.
Drugs are buffs of the kind Drug. They live in the same list as World > Create Buffs, and this page edits only the drugs in it.
Stores sell drugs as item type Food / drink, with the drug id as the class. The Drug Dealer store preset has them. They can also be sold in shipments.
Where to find it
Q menu > KGX's Admin Toolbox > Settings > Drugs.
Anyone can open the page. Only superadmins can change drugs and their settings. The Give me the selected drug (admins, to test) button works for toolbox admins.
Players use a drug by left-clicking with the item, or with Alt + E on the drug's prop.
The panel
The two checkboxes apply at once. Drug changes are saved when you click Add as a new drug or Update the selected drug.
Settings
| Option | What it does | Default |
|---|---|---|
| Drugs work | Master switch for every drug. | On |
| Police see HIGH over players who are high nearby | Jobs with the Police ability see who is high. | On |
Drugs
The list shows every drug with the columns Id, Name and Does. Click a drug to load it into the form.
Selected / new drug
| Option | What it does | Range |
|---|---|---|
| Id (letters, numbers, _) | Unique id, also the store class. | |
| Name | Display name. | |
| Prop model (empty = only as an item) | The prop in the world. | |
| High: screen effect | No screen effect, Meth: sharp, jittery, cold colors, Cocaine: bright, fast, white glow, Cannabis: slow, green haze, blur, PCP: red, tunnel vision, shaking, Trip: rainbow colors, waves. | |
| Health (instant; negative hurts) | Instant health change. | -500 to 500 |
| Armor (instant) | Instant armor change. | -500 to 500 |
| Healing per second / Healing for seconds | Slow healing. | 0-100 / 0-600 |
| Poison damage per second / Poison for seconds | Slow damage. | 0-100 / 0-600 |
| Run speed % (100 = normal, 0 = unchanged) / Speed for seconds | Speed boost. | 0-300 / 0-600 |
| Jump height % (100 = normal, 0 = unchanged) / Jump for seconds | Jump boost. | 0-300 / 0-600 |
| Drunk for seconds (blurry, swaying) | Drunk effect. | 0-600 |
| Sick for seconds (throwing up) | Sick effect. | 0-600 |
| High for seconds (screen effect below) | Length of the high. | 0-900 |
| Takes % less damage / Resistance for seconds | Damage resistance. | 0-90 / 0-600 |
All number fields start at 0, which means nothing.
Below the form: Add as a new drug, Update the selected drug, Remove the selected drug and Give me the selected drug (admins, to test).
The built-in drugs
| Id | Name | What it does |
|---|---|---|
meth |
Meth | Fast, a little hurt, cold sharp look. |
cocaine |
Cocaine | Fast, high jumps, bright glow. |
cannabis |
Cannabis | Slow, heals slowly, green haze. |
pcp |
PCP | +25 health, half the damage, red tunnel vision. |
How to use it
Make a new drug
- Type an Id (letters, numbers, _) and a Name.
- Type a Prop model, or leave it empty for an item only.
- Pick a High: screen effect and set High for seconds (screen effect below).
- Move the sliders for what the drug does, for example Run speed % and Speed for seconds.
- Click Add as a new drug. An id that is taken is refused.
Change a drug
- Click the drug in the list.
- Change the fields and click Update the selected drug.
Test a drug
- Select it in the list.
- Click Give me the selected drug (admins, to test). The item goes to you.
- Use it with left click.
Sell drugs in a store
- Make a store with World > Store Maker and use the Drug Dealer preset, or add items yourself.
- For your own drugs, add an item of type Food / drink with the drug id as the class.
Settings and commands
| Setting or command | What it does | Default | Range |
|---|---|---|---|
kgxat_drugs |
Drugs work | 1 | 0-1 |
kgxat_drugs_police |
Police see who is high | 1 | 0-1 |
kgxat_buff <player> <id> |
Admins: apply a drug or buff to a player | ||
kgxat_givefood <id> [count] |
Admins: give yourself the item (count 1-50) |
Tips and limits
- With Drugs work off, using a drug says "Drugs are off on this server."
- Removing a drug here removes it from the buff list in World > Create Buffs too.
- Food, drink and buff settings such as stack size are on Settings > Furniture & Buffs.