SDQL2 messery and tomhooligans

Post Reply
User avatar
JJRcop
Joined: Wed Apr 23, 2014 1:52 am
Byond Username: JJRcop
Github Username: JJRcop

SDQL2 messery and tomhooligans

Post by JJRcop » #491261

Please move this to a better board if this is the wrong one. Just post SDQL queries that cause fun.

SDQL is a powerful yet inefficient and unintuitive/sloppy (read horrible) language for complex behavior. It should probably have a better substitute.

I spent too much time cooking up a fire-and-forget cinematic round ender (literally it ends the round for you) that drops a tesla missile at your current location in about a minute after a short series of announcements.

Code: Select all

USING SEQUENTIAL = TRUE CALL global._new(/obj/structure/closet/supplypod, [src]) ON * IN global._locate(1, 1, 1);
CALL global.generate_items_inside([/obj/item/grenade/clusterbuster: 1], src) ON /obj/structure/closet/supplypod IN (global._locate(1, 1, 1)).contents;
UPDATE /obj/item/grenade/clusterbuster IN (@[/obj/structure/closet/supplypod IN (global._locate(1, 1, 1)).contents MAP contents])[1] SET payload = /obj/energy_ball, det_time = 715;
UPDATE /obj/structure/closet/supplypod IN (global._locate(1, 1, 1)).contents SET effectStealth = TRUE, delays = ["1": 605, "2": 4, "3": 97, "4": 30];
CALL setStyle(8) ON /obj/structure/closet/supplypod IN (global._locate(1, 1, 1)).contents;
CALL arm_grenade() ON /obj/item/grenade/clusterbuster IN (@[/obj/structure/closet/supplypod IN (global._locate(1, 1, 1)).contents MAP contents])[1];
CALL global._new(/obj/effect/pod_landingzone, [global._get_step(usr, 0), src]) ON /obj/structure/closet/supplypod IN (global._locate(1, 1, 1)).contents;
CALL global._addtimer(global._new(/datum/callback, [src, "reset_perspective", global._get_step(usr, 0)]), 555) ON /mob IN global.player_list;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/priority_announce", "Proximity sensors picked up a small object with a heavy electromagnetic signature. It is moving, however trajectory models indicate we will miss it.", "Proximity Alert"]), 30) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/priority_announce", "The object is slowing down and changing course. Stand by.", "Proximity Alert"]), 270) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/priority_announce", "Object identified as SyHOK-class warhead. It is tracking " + global.station_name() + ".", "Proximity Alert"]), 450) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/set_security_level", "delta"]), 480) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/sound_to_playing_players", "sound/misc/airraid.ogg"]), 490) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/sound_to_playing_players", "sound/misc/airraid.ogg"]), 550) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/sound_to_playing_players", "sound/misc/airraid.ogg"]), 610) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/sound_to_playing_players", "sound/magic/lightning_chargeup.ogg"]), 616) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/sound_to_playing_players", "sound/magic/lightning_chargeup.ogg"]), 617) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/sound_to_playing_players", "sound/magic/lightning_chargeup.ogg"]), 621) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/sound_to_playing_players", "sound/magic/lightning_chargeup.ogg"]), 624) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/sound_to_playing_players", "sound/misc/airraid.ogg"]), 670) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/sound_to_playing_players", "sound/misc/airraid.ogg"]), 730) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/sound_to_playing_players", "sound/misc/airraid.ogg"]), 790) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/sound_to_playing_players", "sound/misc/airraid.ogg"]), 850) ON * IN usr;
CALL global._addtimer(global._new(/datum/callback, [src, "reset_perspective", src]), 790) ON /mob IN global.player_list;
CALL global._addtimer(global._new(/datum/callback, ["some_magic_bullshit", "/proc/___callbackvarset", SSticker, "force_ending", TRUE]), 790) ON * IN usr;
(haha most of it is queuing up the air raid siren a bunch of times because there's no for loops, it's not designed for this)
Last edited by JJRcop on Sat Mar 20, 2021 3:34 pm, edited 3 times in total.
I lurk quite often...
User avatar
Not-Dorsidarf
Joined: Fri Apr 18, 2014 4:14 pm
Byond Username: Dorsidwarf
Location: We're all going on an, admin holiday

Re: SDQL2 messery and tomhooligans

Post by Not-Dorsidarf » #491943

You can do sqdl things other than rename everyone “Meow Micks?”
Image
Image
kieth4 wrote: infrequently shitting yourself is fine imo
There is a lot of very bizarre nonsense being talked on this forum. I shall now remain silent and logoff until my points are vindicated.
Player who complainted over being killed for looting cap office wrote: Sun Jul 30, 2023 1:33 am Hey there, I'm Virescent, the super evil person who made the stupid appeal and didn't think it through enough. Just came here to say: screech, retards. Screech and writhe like the worms you are. Your pathetic little cries will keep echoing around for a while before quietting down. There is one great outcome from this: I rised up the blood pressure of some of you shitheads and lowered your lifespan. I'm honestly tempted to do this more often just to see you screech and writhe more, but that wouldn't be cool of me. So come on haters, show me some more of your high blood pressure please. 🖕🖕🖕
Post Reply

Who is online

Users browsing this forum: No registered users