updated gagcreator with some awesome stuff
This commit is contained in:
@@ -1,51 +1,94 @@
|
||||
#alias addnewgag {#play {@sppath/general/misc/confman.wav} @vol;
|
||||
#alarm 0@{decchar}100 {#say {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} VoiceOnly};
|
||||
#pick {P:Creating a new gag|
|
||||
#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
|
||||
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 didn't mean to use this, please abort:#abort}}
|
||||
I want to start over, clear the current input:clearnewgag|
|
||||
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 {
|
||||
#alarm 0@{decchar}100 {#say {please enter the line that you would like to be gagged, if parts of it are not static, E.G random numbers or words, replace this bit by an asterisc, *} VoiceOnly};
|
||||
#prompt newgag {Enter the line here.};
|
||||
addnewgag}
|
||||
#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
|
||||
}}
|
||||
|
||||
#alias enternewgag {#prompt newgag {Enter the line here.};setgagline }
|
||||
|
||||
#alias setgagmethod {
|
||||
#alarm 0@{decchar}100 {#say {please choose one of the methods below:} VoiceOnly};
|
||||
#pick {P:Method?|
|
||||
#pick {*Please choose one of the methods below: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};
|
||||
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}
|
||||
#alias setgagfile {
|
||||
#alarm 0@{decchar}100 {#say {Due to VIPMud limitations, a file cannot exceed 32000 characters in length, this is why it is recommended to sort your gags into categories, so please choose from one of the files below:} VoiceOnly};
|
||||
#pick {P:What file are we using today?|
|
||||
#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}
|
||||
|
||||
#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}}};
|
||||
#close 3;
|
||||
#unload {gags/@gagfile.set};
|
||||
#load {gags/@gagfile.set};
|
||||
#unvar gagmethod;#unvar newgag;#unvar gagfile;#alarm 1 {#say {Complete!}; #play {@sppath/general/misc/loadingfile.wav} @vol}}}
|
||||
#alias pushnewgag {
|
||||
#if {%length(@gagfile)<1 or %length(@gagmethod)<1 or %length(@newgag)<1} {
|
||||
#alarm 0@{decchar}5 {
|
||||
#play {@sppath/general/misc/boop.wav} @vol;
|
||||
#Say {Error: You have not filled out all the required fields with relevant information};
|
||||
#abort
|
||||
}
|
||||
} {
|
||||
#if {@gagmethod="substitute" AND %length(@gagsubvar)<1} {
|
||||
#alarm 0@{decchar}5 {
|
||||
#play {@sppath/general/misc/boop.wav} @vol;
|
||||
#Say {Error: Substitution was selected, but you haven't entered valid substitute text};
|
||||
#abort
|
||||
}
|
||||
} {
|
||||
#file 3 {%CharInfo(MudName)/gags/@gagfile.set};
|
||||
#forall {@newgag} {
|
||||
#if {@gagmethod="substitute"} {
|
||||
#write 3 {~#trigger {%i} {~#sub {@gagsubvar}}}
|
||||
} {
|
||||
#write 3 {~#trigger {%i} {~#gagline @gagmethod}}
|
||||
}
|
||||
};
|
||||
#close 3;
|
||||
#unload {gags/@gagfile.set};
|
||||
#load {gags/@gagfile.set};
|
||||
#unvar gagmethod;
|
||||
#unvar newgag;
|
||||
#unvar gagfile;
|
||||
#unvar gagsubvar;
|
||||
#alarm 1 {
|
||||
#say {Complete!};
|
||||
#play {@sppath/general/misc/loadingfile.wav} @vol
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
#alias miscgagtoggle {
|
||||
#if {@MiscGags="disabled"} {#var MiscGags "enabled";#load {@scpath/gags/MiscGags.set}} {#var MiscGags "disabled";#unload {@scpath/gags/gags.set}}}
|
||||
#if {@MiscGags="disabled"} {#var MiscGags "enabled";#load {%charinfo(mudname)/gags/MiscGags.set}} {#var MiscGags "disabled";#unload {%charinfo(mudname)/gags/miscgags.set}}}
|
||||
#alias vehiclegagtoggle {
|
||||
#if {@VehicleGags="disabled"} {#var VehicleGags "enabled"; #unload {@scpath/gags/VehicleGags.set}} {#var VehicleGags "disabled";#load {@scpath/gags/VehicleGags.set}}}
|
||||
#if {@VehicleGags="disabled"} {#var VehicleGags "enabled"; #load {%charinfo(mudname)/gags/VehicleGags.set}} {#var VehicleGags "disabled";#unload {%charinfo(mudname)/gags/VehicleGags.set}}}
|
||||
#alias activitygagtoggle {
|
||||
#if {@ActivityGags="disabled"} {#var ActivityGags "enabled";#load {@scpath/gags/ActivityGags.set}} {#var ActivityGags "disabled";#unload {@scpath/gags/ActivityGags.set}}}
|
||||
#if {@ActivityGags="disabled"} {#var ActivityGags "enabled";#load {%charinfo(mudname)/gags/ActivityGags.set}} {#var ActivityGags "disabled";#unload {%charinfo(mudname)/gags/ActivityGags.set}}}
|
||||
#alias shipgagtoggle {
|
||||
#if {@ShipGags="disabled"} {#var ShipGags "enabled";#load {@scpath/gags/ShipGags.set}} {#var ShipGags "disabled";#unload {@scpath/gags/ShipGags.set}}}
|
||||
#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 {P:Please select an option below|
|
||||
#pick {*Please choose an option below:gagconfig|
|
||||
Create a new gag:addnewgag|
|
||||
Activity-related gags (@ActivityGags):activitygagtoggle|
|
||||
Ship-related gags (@ShipGags):shipgagtoggle|
|
||||
Vehicle-related gags (@VehicleGags):vehiclegagtoggle|
|
||||
|
||||
@@ -55,7 +55,6 @@
|
||||
#key {Shift-alt-f9} {~@sp-settings Interrupt OOC Social sounds when the next one plays}
|
||||
#key {f2} {~@sp-settings}
|
||||
#key {control-s} {ActualSave;#say {Client-side Soundpack Settings have been saved successfully!} VoiceOnly}
|
||||
#key {alt-n} {addnewgag}
|
||||
#key {alt-shift-h} {localsphelp}
|
||||
#key {Shift-f1} {~@sp-toggle}
|
||||
#key {control-f2} {mainvoldown}
|
||||
|
||||
Reference in New Issue
Block a user