mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-28 10:21:35 +00:00
* 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
14 lines
529 B
Plaintext
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)
|