The Bracket Script (RP OOC/Whatever you use it for)

Platform:  mIRC
Published  Jul 12, 2012
Updated  Jul 12, 2012
This is a little something I wrote for a very specific purpose: In chat roleplay, so that when I type OOC a lot, I do not have to manually add (()) or {} or ({}) or what have you. (I've seen [] used as well). Anyways, when loaded, this script will ask you for text to prepend and append to output text. Then, once that is configured, if you type /bon, all text you input will be sent out with the append and prepend text appended and prepended. Simple. That is how it works. Use it for what you like, but I usually just set it up with prepend { and append }. Oh, one last thing, /boff turns this feature off, when you are done with it. The rest of the few commands it has are in the code comments. //Script to put desired text/characters before and/or after entered text.
//Most common use is for OOC tect in chat RPs, ie: ((This is OOC)) {And this is OOC too!}
//Commands: /setbr to setup, /showbr to show settings, /bon to turn bracketization on, and /boff to turn it off.
//Written by AppleDash of Ponychat IRC, on 7/12/2012, at approx 12:00 AM. You may not distribute this script unles you leave this line intact and unmodified.
on *:LOAD: {
/echo Initializing for the first time!
/set %leftbr $?="What character would you like BEFORE your text?"
/set %rightbr $?="What character would you like AFTER your text?"
/echo Initialization complete! These settings may be changed again later by typing "/setbrackets"
/echo You may also type /showbr to show you your current settings.
}
alias setbrackets {
/echo Rerunning setup!
/set %leftbr $?="What character would you like BEFORE your text?"
/set %rightbr $?="What character would you like AFTER your text?"
/echo Setup complete!
}

alias showbr {
/echo Your current "before" character is %leftbr $+ , and your current "after" character is %rightbr $+ .
/echo Text you enter will look like this to the channel: %leftbr $+ Your text here $+ %rightbr
}
on 1:INPUT:*: {
if ($left($$1-,1) != $chr(47)) {
if (%brackets == 1) {
say %leftbr $+ $$1- $+ %rightbr
}
else {
say $$1-
}
halt
}
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.