updated gagcreator again

This commit is contained in:
Augustus
2025-09-09 21:52:35 +03:00
parent 664d8c5f17
commit e4c0daf7de
2 changed files with 26 additions and 24 deletions

View File

@@ -1,44 +1,47 @@
#alias addnewgag {#play {@sppath/general/misc/confman.wav} @vol;
#alias addnewgag {#alarm 0@{decchar}10 {#play {@sppath/general/misc/confman.wav} @vol;
#pick {*This prompt allows one to add a string that they would like to be gagged either completely or just from the speach queue. In order to do this, please use the options below:addnewgag|
Note! Make sure that the gag files are loaded
Note! Please ensure that the gag file you selected is enabled in the gag settings after you have added your new gag.:addnewgag|
What line are we gagging today? @newgag:setgagline|
What kind of the gagging method would you like? @gagmethod:setgagmethod|
What file is this going to be stored in? @gagfile:setgagfile|
I'm done and want to finish:pushnewgag|
I want to start over, clear the current input:clearnewgag|
I didn't mean to use this, please abort.:#abort}}
I didn't mean to use this, please abort.:#abort
}
}
}
#Alias clearnewgag {#unvar gagmethod;#unvar newgag;#unvar gagfile;#unvar gagsubvar;addnewgag}
#Alias setgagsubtext {
#pick {*Please enter the text that you want to have displayed in place of the trigger. Use ~%0 for the entire line, and ~%1 to ~%9 for each wildcard (asterisk, *) you defined in the trigger.:setgagsubtext|
Press enter to open the input field, @gagsubvar:subgagtextenter|
Finish:addnewgag}}
#alias subgagtextenter {#Prompt gagsubvar {Enter the substitution text here.};setgagsubtext}
#alias setgagline {
#pick {*Please enter the text you would like to be gagged. Use an asterisk (*) in place of any static strings.:setgagline|
For example, instead of "Bob hugs you," write "* hugs you" because the player name might not always be "Bob" in every situation within the game.:setgagline|
Press enter to open the input field, @newgag:enternewgag|
Finish:addnewgag
}}
Press enter to open the input field, @newgag:enternewgag
}
}
#alias enternewgag {#prompt newgag {Enter the line here.};setgagline }
#alias enternewgag {#prompt newgag {Enter the line here.};#alarm 0@{decchar}50 {addnewgag}}
#alias setgagmethod {
#pick {*Please choose one of the methods below:setgagmethod|
If you choose substitute, Please enter the text that you want to have displayed in place of the trigger. Use ~%0 for the entire line, and ~%1 to ~%9 for each wildcard (asterisk, *) you defined in the trigger.:setgagmethod|
Omit the line from my speech queue but leave it in the output window:#var gagmethod voice|
Omit the line both from the output window and from my speech queue:#var gagmethod all|
Substitute the text. Currently set to @gagsubvar:#Var gagmethod substitute;setgagsubtext};
addnewgag}
Substitute the text. Currently set to @gagsubvar:#Var gagmethod substitute;subgagtextenter
};
#alarm 0@{decchar}50 {addnewgag}
}
#alias subgagtextenter {#Prompt gagsubvar {Enter the substitution text here.}}
#alias setgagfile {
#pick {*Due to VIPMud limitations, no single file can exceed 32000 characters in length. Therefore, it is recommended to organize content into categories. Please select one of the files from the options below.:setgagfile|
Activity related gags:#var gagfile ActivityGags|
Ship Related Gags:#var gagfile ShipGags|
Miscellaneous gags:#var gagfile MiscGags|
Vehicle Related gags:#var gagfile VehicleGags};
addnewgag}
#alarm 0@{decchar}50 {addnewgag}
}
#alias pushnewgag {
#if {%length(@gagfile)<1 or %length(@gagmethod)<1 or %length(@newgag)<1} {
@@ -56,12 +59,10 @@ addnewgag}
}
} {
#file 3 {%CharInfo(MudName)/gags/@gagfile.set};
#forall {@newgag} {
#if {@gagmethod="substitute"} {
#write 3 {~#trigger {%i} {~#sub {@gagsubvar}}}
#if {@gagmethod="substitute"} {
#write 3 {~#trigger {@newgag} {~#sub {@gagsubvar}}}
} {
#write 3 {~#trigger {%i} {~#gagline @gagmethod}}
}
#write 3 {~#trigger {@newgag} {~#gagline @gagmethod}}
};
#close 3;
#unload {gags/@gagfile.set};
@@ -87,7 +88,7 @@ addnewgag}
#alias shipgagtoggle {
#if {@ShipGags="disabled"} {#var ShipGags "enabled";#load {%charinfo(mudname)/gags/ShipGags.set}} {#var ShipGags "disabled";#unload {%charinfo(mudname)/gags/ShipGags.set}}}
#alias gagconfig {#play {@sppath/general/misc/confman.wav} @vol;
#pick {*Please choose an option below:gagconfig|
#pick {*Please choose an option below:#abort|
Create a new gag:addnewgag|
Activity-related gags (@ActivityGags):activitygagtoggle|
Ship-related gags (@ShipGags):shipgagtoggle|

View File

@@ -82,3 +82,4 @@
}
#key {alt-shift-enter} {~@buffer link}
#key {alt-f1} {decimalpick}
#key {alt-n} {gagconfig}