From d2d55002c6feec8aa5395127d8461fcc986c0f1d Mon Sep 17 00:00:00 2001 From: Augustus <123775785+OlegTheSnowman@users.noreply.github.com> Date: Thu, 3 Jul 2025 23:42:50 +0300 Subject: [PATCH] improoved certain checks for gag creator, hopefully it will work better now and won't return endless loops instead of your gags. --- scripts/gagcreator.set | 2 +- scripts/main.set | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gagcreator.set b/scripts/gagcreator.set index e014a52..0b3c7a8 100644 --- a/scripts/gagcreator.set +++ b/scripts/gagcreator.set @@ -27,7 +27,7 @@ Miscellaneous gags:#var gagfile MiscGags| Vehicle Related gags:#var gagfile VehicleGags}; addnewgag} -#alias pushnewgag {#if {%defined(gagfile)=0 or %defined(gagmethod)=0 or %defined(newgag)=0} {#alarm 1 {#say {you have not filled out all the required fields with rellivant information}; #play {@sppath/general/misc/boop.wav} @vol;#abort}} { +#alias pushnewgag {#if {%length(@gagfile)<1 or %length(@gagmethod)<1 or %length(@newgag)<1} {#alarm 1 {#say {you have not filled out all the required fields with rellivant information}; #play {@sppath/general/misc/boop.wav} @vol;#abort}} { #file 3 {%CharInfo(MudName)/gags/@gagfile.set}; #forall {@newgag} { #write 3 {~#trigger {%i} {~#gagline @gagmethod}}}; diff --git a/scripts/main.set b/scripts/main.set index 67b3343..e59eef7 100644 --- a/scripts/main.set +++ b/scripts/main.set @@ -1,5 +1,5 @@ ;core variables -#var clientversion 7 +#var clientversion 8 #var loadtask {soundpack|keys|aliases|updator|misc|gagcreator|pathupdator} #var settings {rawpass|miscgags|shipgags|vehiclegags|activitygags|intromusic|vol|commandsinoutput|devmode|decchar} #var speech "disabled"