Skip to content

Commands & permissions

Staff commands of Cuxial Diseases to assign, cure and test diseases and pregnancies, and who can use them.

Cuxial Diseases adds two commands, both for staff. Players have no commands and no keys: they interact with the system through items and, with lb-phone, the Health app.

/disease ​

text
/disease <action> [id] [disease | symptom] [stage]

id is the server id of the player. disease is an id from data/diseases.lua.

CommandWhat it does
/disease listLists the ids of every disease in the catalog.
/disease status <id>Shows the active diseases of the player, with stage and status. Diagnosed cases are marked dx.
/disease infect <id> <disease>Gives the disease to the player, in its first stage. Ignores immunity. The player is notified.
/disease cure <id> <disease>Cures the disease and applies the immunity set in the catalog. The player is notified.
/disease treat <id> <disease>Applies one dose of the treatment, with the same rules as taking the item.
/disease diagnose <id> <disease>Marks the case as diagnosed.
/disease stage <id> <disease> <stage>Moves the case to that stage and restarts its timer.
/disease symptom <id> [symptom]Plays a symptom on the player to test it. No disease is needed.
/disease onboarding <id>Restarts the vaccination deadline of the player, with the hours of onboarding.hours.

Testing symptoms ​

/disease symptom is the quick way to see each animation and effect without waiting for a real case.

ValueEffect
allPlays the six symptoms one after another. Used when no symptom is given.
coughCough.
dizzinessStumble and screen distortion.
vomitVomiting.
fatigueOut of breath.
blurBlurred vision.
shakeCamera shake.
text
/disease symptom 12 vomit

A complete test ​

text
/disease infect 12 <disease>
/disease status 12
/disease stage 12 <disease> <stage>
/disease treat 12 <disease>
/disease cure 12 <disease>

When an action cannot be done, the command answers with the reason:

ReasonMeaning
already_infectedThe player already has that disease.
not_infectedThe player does not have that disease.
no_treatmentThe disease has no treatment in the catalog.
too_soonThe previous dose is still active.
onboarding_disabledThe vaccination deadline is turned off, or its disease does not exist.

/pregnancy ​

text
/pregnancy <action> <id> [fatherId]
CommandWhat it does
/pregnancy set <id> [fatherId]Starts a pregnancy for the player and marks it as known. fatherId is the server id of the father; optional.
/pregnancy status <id>Shows week, whether it is known and the days left until birth.
/pregnancy reveal <id>Marks the pregnancy as known, as a positive test would.
/pregnancy birth <id>Records the birth now.
/pregnancy remove <id>Ends the pregnancy.

Permissions ​

Both commands go through two checks. A player needs both.

CheckDefaultWhere to change it
ACE group the command is limited togroup.adminadmin.restricted in shared/config.lua
Framework permission, asked through cuxial_bridgeadminadmin.permission in shared/config.lua

Add a staff member to the ACE group in server.cfg:

server.cfg
cfg
add_principal identifier.license:xxxxxxxxxxxxxxxx group.admin

Both commands can also be run from the server console, where no permission is checked.

Keys ​

Cuxial Diseases registers no keys.

© Cuxial