improoved certain checks for gag creator, hopefully it will work better now and won't return endless loops instead of your gags.

This commit is contained in:
Augustus
2025-07-03 23:42:50 +03:00
parent 745c511f55
commit d2d55002c6
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ Miscellaneous gags:#var gagfile MiscGags|
Vehicle Related gags:#var gagfile VehicleGags}; Vehicle Related gags:#var gagfile VehicleGags};
addnewgag} 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}; #file 3 {%CharInfo(MudName)/gags/@gagfile.set};
#forall {@newgag} { #forall {@newgag} {
#write 3 {~#trigger {%i} {~#gagline @gagmethod}}}; #write 3 {~#trigger {%i} {~#gagline @gagmethod}}};

View File

@@ -1,5 +1,5 @@
;core variables ;core variables
#var clientversion 7 #var clientversion 8
#var loadtask {soundpack|keys|aliases|updator|misc|gagcreator|pathupdator} #var loadtask {soundpack|keys|aliases|updator|misc|gagcreator|pathupdator}
#var settings {rawpass|miscgags|shipgags|vehiclegags|activitygags|intromusic|vol|commandsinoutput|devmode|decchar} #var settings {rawpass|miscgags|shipgags|vehiclegags|activitygags|intromusic|vol|commandsinoutput|devmode|decchar}
#var speech "disabled" #var speech "disabled"