Files
Paradise/code/modules/admin/verbs/SDQL2/sdql2_verbs.dm
warriorstar-orion 2a842644d5 port ADMIN_VERB and friends (#30646)
* port ADMIN_VERB and friends

* some renaming

* dumb

* one more rename

* never search and replace this codebase

* fix TM issues, more renaming

* add a static analysis to shore up user verbs

* fix double message on roundstart

* remove macro we're not using yet

* convert remaining playsounds verbs

* convert more verbs i missed somehow

* why is this a completely different signature than everything else

* fix ui_interact arg

* fix logging view and others

* buncha issues caught in TM

* fix mentor tickets ui

* fix bug report viewing

* moron
2025-12-12 19:18:22 +00:00

14 lines
529 B
Plaintext

USER_VERB(load_sdql2_query, R_PROCCALL, "Load SDQL2 Query", "Load SDQL2 Query from data directory.", VERB_CATEGORY_DEBUG)
var/list/choices = flist("data/sdql/")
var/choice = input(client, "Choose an SDQL script to run:", "Load SDQL Query", null) as null|anything in choices
if(isnull(choice))
return
var/script_text = return_file_text("data/sdql/[choice]")
script_text = input(client, "SDQL2 query", "", script_text) as message
if(!script_text || length(script_text) < 1)
return
client.run_sdql2_query(script_text)