updated gagcreator again
This commit is contained in:
@@ -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|
|
#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 line are we gagging today? @newgag:setgagline|
|
||||||
What kind of the gagging method would you like? @gagmethod:setgagmethod|
|
What kind of the gagging method would you like? @gagmethod:setgagmethod|
|
||||||
What file is this going to be stored in? @gagfile:setgagfile|
|
What file is this going to be stored in? @gagfile:setgagfile|
|
||||||
I'm done and want to finish:pushnewgag|
|
I'm done and want to finish:pushnewgag|
|
||||||
I want to start over, clear the current input:clearnewgag|
|
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 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 {
|
#alias setgagline {
|
||||||
#pick {*Please enter the text you would like to be gagged. Use an asterisk (*) in place of any static strings.: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|
|
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|
|
Press enter to open the input field, @newgag:enternewgag
|
||||||
Finish:addnewgag
|
}
|
||||||
}}
|
}
|
||||||
|
|
||||||
#alias enternewgag {#prompt newgag {Enter the line here.};setgagline }
|
#alias enternewgag {#prompt newgag {Enter the line here.};#alarm 0@{decchar}50 {addnewgag}}
|
||||||
|
|
||||||
#alias setgagmethod {
|
#alias setgagmethod {
|
||||||
#pick {*Please choose one of the methods below: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 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};
|
Substitute the text. Currently set to @gagsubvar:#Var gagmethod substitute;subgagtextenter
|
||||||
addnewgag}
|
};
|
||||||
|
#alarm 0@{decchar}50 {addnewgag}
|
||||||
|
}
|
||||||
|
|
||||||
|
#alias subgagtextenter {#Prompt gagsubvar {Enter the substitution text here.}}
|
||||||
|
|
||||||
#alias setgagfile {
|
#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|
|
#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|
|
Activity related gags:#var gagfile ActivityGags|
|
||||||
Ship Related Gags:#var gagfile ShipGags|
|
Ship Related Gags:#var gagfile ShipGags|
|
||||||
Miscellaneous gags:#var gagfile MiscGags|
|
Miscellaneous gags:#var gagfile MiscGags|
|
||||||
Vehicle Related gags:#var gagfile VehicleGags};
|
Vehicle Related gags:#var gagfile VehicleGags};
|
||||||
addnewgag}
|
#alarm 0@{decchar}50 {addnewgag}
|
||||||
|
}
|
||||||
|
|
||||||
#alias pushnewgag {
|
#alias pushnewgag {
|
||||||
#if {%length(@gagfile)<1 or %length(@gagmethod)<1 or %length(@newgag)<1} {
|
#if {%length(@gagfile)<1 or %length(@gagmethod)<1 or %length(@newgag)<1} {
|
||||||
@@ -56,12 +59,10 @@ addnewgag}
|
|||||||
}
|
}
|
||||||
} {
|
} {
|
||||||
#file 3 {%CharInfo(MudName)/gags/@gagfile.set};
|
#file 3 {%CharInfo(MudName)/gags/@gagfile.set};
|
||||||
#forall {@newgag} {
|
#if {@gagmethod="substitute"} {
|
||||||
#if {@gagmethod="substitute"} {
|
#write 3 {~#trigger {@newgag} {~#sub {@gagsubvar}}}
|
||||||
#write 3 {~#trigger {%i} {~#sub {@gagsubvar}}}
|
|
||||||
} {
|
} {
|
||||||
#write 3 {~#trigger {%i} {~#gagline @gagmethod}}
|
#write 3 {~#trigger {@newgag} {~#gagline @gagmethod}}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
#close 3;
|
#close 3;
|
||||||
#unload {gags/@gagfile.set};
|
#unload {gags/@gagfile.set};
|
||||||
@@ -87,7 +88,7 @@ addnewgag}
|
|||||||
#alias shipgagtoggle {
|
#alias shipgagtoggle {
|
||||||
#if {@ShipGags="disabled"} {#var ShipGags "enabled";#load {%charinfo(mudname)/gags/ShipGags.set}} {#var ShipGags "disabled";#unload {%charinfo(mudname)/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;
|
#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|
|
Create a new gag:addnewgag|
|
||||||
Activity-related gags (@ActivityGags):activitygagtoggle|
|
Activity-related gags (@ActivityGags):activitygagtoggle|
|
||||||
Ship-related gags (@ShipGags):shipgagtoggle|
|
Ship-related gags (@ShipGags):shipgagtoggle|
|
||||||
|
|||||||
@@ -81,4 +81,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#key {alt-shift-enter} {~@buffer link}
|
#key {alt-shift-enter} {~@buffer link}
|
||||||
#key {alt-f1} {decimalpick}
|
#key {alt-f1} {decimalpick}
|
||||||
|
#key {alt-n} {gagconfig}
|
||||||
Reference in New Issue
Block a user