Files
VOREStation/code/modules/mob/living/living_vr.dm
T

54 lines
2.3 KiB
Plaintext

/mob/living/verb/customsay()
set category = "IC"
set name = "Customise Speech Verbs"
set desc = "Customise the text which appears when you type- e.g. 'says', 'asks', 'exclaims'."
if(src.client)
var/customsaylist[] = list(
"Say",
"Whisper",
"Ask (?)",
"Exclaim/Shout/Yell (!)",
"Cancel"
)
var/sayselect = input("Which say-verb do you wish to customise?") as null|anything in customsaylist //we can't use alert() for this because there's too many terms
if(sayselect == "Say")
custom_say = sanitize(input(usr, "This word or phrase will appear instead of 'says': [src] says, \"Hi.\"", "Custom Say", null) as text)
else if(sayselect == "Whisper")
custom_whisper = sanitize(input(usr, "This word or phrase will appear instead of 'whispers': [src] whispers, \"Hi...\"", "Custom Whisper", null) as text)
else if(sayselect == "Ask (?)")
custom_ask = sanitize(input(usr, "This word or phrase will appear instead of 'asks': [src] asks, \"Hi?\"", "Custom Ask", null) as text)
else if(sayselect == "Exclaim/Shout/Yell (!)")
custom_exclaim = sanitize(input(usr, "This word or phrase will appear instead of 'exclaims', 'shouts' or 'yells': [src] exclaims, \"Hi!\"", "Custom Exclaim", null) as text)
else
return
/mob/living/proc/toggle_rider_reins()
set name = "Give Reins"
set category = "Abilities"
set desc = "Let people riding on you control your movement."
if(riding_datum)
if(istype(riding_datum,/datum/riding))
if(riding_datum.keytype)
riding_datum.keytype = null
to_chat(src, "Rider control enabled.")
return
else
riding_datum.keytype = /obj/item/weapon/material/twohanded/fluff/riding_crop
to_chat(src, "Rider control restricted.")
return
return
/mob/living/verb/set_metainfo()
set name = "Set OOC Metainfo"
set desc = "Sets OOC notes about yourself or your RP preferences or status."
set category = "OOC"
var/new_metadata = sanitize(input(usr, "Enter any information you'd like others to see, such as Roleplay-preferences. This will not be saved permanently, only for this round.", "Game Preference" , html_decode(ooc_notes)) as message, extra = 0)
if(new_metadata && CanUseTopic(usr))
ooc_notes = new_metadata
to_chat(usr, "OOC notes updated.")
log_admin("[key_name(usr)] updated their OOC notes mid-round.")