rules

Privateunrated

Content

278 lines
{=(comment):If you would like the tag to always display a link to your rules channel in the description when you are listing rules}
{=(comment):Insert the channel id of your rules channel below. Leave completely blank and it will not display.}
{=(ruleschannelid):598255194177798150}

{=(comment):Add, change or remove the embed title here}
{=(embedtitle):}

{=(comment):Put custom titles in the title1-title25 variables (if you want them).}
{=(comment):Put keywords for each rule in the keyword1-keyword25 variables. Not required but useful.}
{=(comment):Put rules in the rule1-rule25 variables.}
{=(comment):Titles must be less than 256 characters, and rules must be less than 1024 characters.}
{=(comment):Some symbols in rule text might cause issues, limit formatting to Discord markdown friendly characters.}
{=(comment):Leave custom titles blank to have the titles just be "Rule #".}
{=(comment):Leave corresponding title, keyword, and rule variables blank if the rule # does not exist, but do NOT erase the blank variables}

{=(title01):}
{=(keyword01):}
{=(rule01):• MOST IMPORTANT RULE! NO GRIEFING OR TOXIC BEHAVIOR.
 Everyone is here to enjoy their time, if you are found to be griefing or trolling other players, an Admin will be having a little chat with you. If it continues you may be banned.
  

Administration is not responsible for making sure that you are within the rules - YOU are responsible for making sure that YOU are within the rules. If You have any doubt or unclarity whatsoever, please do not hesitate to ask. Communication is key.
}

{=(title02):}
{=(keyword02):}
{=(rule02):• NO SPAWN BLOCKING. Please make sure not to block major resource nodes or NPC spawns, as well as blocking emotes and recipes. Illegal builds will be dismantled without warning.
}

{=(title03):}
{=(keyword03):}
{=(rule03):• NO BUILDS ON, OR SOUTH OF, NOOB RIVER. Noob river is the first river you approach in the starting area. Please move north into the map more. 4e to 4i  and South will be swept for unauthorized builds regularly. ALL BUILDS FOUND THERE WILL BE DESTROYED. Repeat offenders will be banished from our lands.
}

{=(title04):}
{=(keyword04):}
{=(rule04):• NO OPEN CRAFTING STATIONS. This includes your wheels of pain around the map. Crafting stations should be in your base. - Please build small buildings to house wheels of pain for thralling, and make them look nice! Nothing to large. Be reasonable.
}

{=(title05):}
{=(keyword05):choice}
{=(rule05):• NO altars or vaults outside main base
}

{=(title06):}
{=(keyword06):spam}
{=(rule06):• NO VOLCANO BUILDS! No building is allowed inside the volcano. A thrall wheel may be used temporarily, but remove it after you get your thralls. This area is off limits for building and will be swept regulary. Same as south of Noob river.
}

{=(title07):}
{=(keyword07):}
{=(rule07):• BASE RESTRICTIONS 
    Clans are limited to 1 main base, up to 25 percent of a map square. If you are found with multiple bases one will be wiped without notice! 
}

{=(title08):}
{=(keyword08):}
{=(rule08):• OUTPOSTS. We don't want people building  giant outposts, so we are limiting this to 1 outpost per clan, a maximum size of 9x5x3. A building this size can fit everything you would need for a fully functional outpost. 
}

{=(title09):}
{=(keyword09):}
{=(rule09):• FLAG SYSTEM.   
    12 flags max per base, 1 per WOP
    
    Flags will be changed monthly to keep track of active users.
  You will have 1 week to change your flag when a new flag is issued. After that one week you MAY be notified if your base is found to have an outdated flag. If you do not respond within 24 hours your base will be wiped. Your base may be wiped without notice if it has been more than 2 weeks since a flag change. 
}

{=(title10):}
{=(keyword10):}
{=(rule10):• You MUST declare all raids in the War Declarations page 24 hours before attacking. NO RANDOM RAIDING. You must negotiate a War if you do not want to fight or if you can not be online that weekend. If negotiations are not successful you must defend yourself. NO offline raiding may take place until this negotiation process takes place. Raiding means destroying any part of a structure to gain entry. 
}

{=(title11):}
{=(keyword11):}
{=(rule11):•  Theft is NOT raiding and does not have to be role played! It is your responsibility to build so that people walking by cannot steal from you. Lock your chests, build structures, and don't place crafting stations near windows or have them poking out of your walls. Theft IS a shameful act and may be posted to the wall of shame. It is up to you to negotiate with the thieves to a peaceful outcome, or a war.
}

{=(title12):}
{=(keyword12):}
{=(rule12):• NO vague War Declarations. You may NOT simply state that you are declaring war on 'everyone in map square H9' or 'the entire server', you must tag each clan individually so they are properly notified and given full opportunity to participate in negotiations. You must also state your reason for the declaration.
}

{=(title13):}
{=(keyword13):}
{=(rule13):• You must ALWAYS DECLARE WAR when raiding. Unflagged bases must be approved by Admin in Discord. Post screen shots in Declaration. 
    Unclanned bases also should be reported and may be investigated to see if we can determine who it belongs to before approving its destruction.
    Abandoned bases no longer require 24hr wait period after declaring, if they have been verified as abandoned. 
}

{=(title14):}
{=(keyword14):}
{=(rule14):• Wars will operate as raids and limited to 2 attacks against the same clan if there is no retaliation. Any more than 2 attacks against the same player/clan with no retaliation counts as griefing. If there is a retaliation, war continues until one side surrenders.

    Retaliation: the action of harming someone because they have harmed you; revenge.
}

{=(title15):}
{=(keyword15):}
{=(rule15):• FORM A CLAN, EVEN IF YOU ARE THE ONLY PERSON IN IT.
}

{=(title16):}
{=(keyword16):}
{=(rule16):• USE YOUR CHARACTER NAME AS YOUR DISCORD NAME SO WE KNOW WHO WE ARE TALKING TO
}

{=(title17):}
{=(keyword17):}
{=(rule17):}

{=(title18):}
{=(keyword18):}
{=(rule18):}

{=(title19):}
{=(keyword19):}
{=(rule19):}

{=(title20):}
{=(keyword20):}
{=(rule20):}

{=(title21):}
{=(keyword21):}
{=(rule21):}

{=(title22):}
{=(keyword22):}
{=(rule22):}

{=(title23):}
{=(keyword23):}
{=(rule23):}

{=(title24):}
{=(keyword24):}
{=(rule24):}

{=(title25):}
{=(keyword25):}
{=(rule25):}



{=(comment):Title overrides, don't touch except to translate "Rule" into a different language}
{=(wordforrule):Rule}
{=(comment):Don't touch}
{=(t01):{if({title01}!=):{title01}|{wordforrule} 1}}
{=(t02):{if({title02}!=):{title02}|{wordforrule} 2}}
{=(t03):{if({title03}!=):{title03}|{wordforrule} 3}}
{=(t04):{if({title04}!=):{title04}|{wordforrule} 4}}
{=(t05):{if({title05}!=):{title05}|{wordforrule} 5}}
{=(t06):{if({title06}!=):{title06}|{wordforrule} 6}}
{=(t07):{if({title07}!=):{title07}|{wordforrule} 7}}
{=(t08):{if({title08}!=):{title08}|{wordforrule} 8}}
{=(t09):{if({title09}!=):{title09}|{wordforrule} 9}}
{=(t10):{if({title10}!=):{title10}|{wordforrule} 10}}
{=(t11):{if({title11}!=):{title11}|{wordforrule} 11}}
{=(t12):{if({title12}!=):{title12}|{wordforrule} 12}}
{=(t13):{if({title13}!=):{title13}|{wordforrule} 13}}
{=(t14):{if({title14}!=):{title14}|{wordforrule} 14}}
{=(t15):{if({title15}!=):{title15}|{wordforrule} 15}}
{=(t16):{if({title16}!=):{title16}|{wordforrule} 16}}
{=(t17):{if({title17}!=):{title17}|{wordforrule} 17}}
{=(t18):{if({title18}!=):{title18}|{wordforrule} 18}}
{=(t19):{if({title19}!=):{title19}|{wordforrule} 19}}
{=(t20):{if({title20}!=):{title20}|{wordforrule} 20}}
{=(t21):{if({title21}!=):{title21}|{wordforrule} 21}}
{=(t22):{if({title22}!=):{title22}|{wordforrule} 22}}
{=(t23):{if({title23}!=):{title23}|{wordforrule} 23}}
{=(t24):{if({title24}!=):{title24}|{wordforrule} 24}}
{=(t25):{if({title25}!=):{title25}|{wordforrule} 25}}

{=(comment):builds the list of rule numbers for rules that are populated}
{=(rules):{if({rule01(1)}!=):01 }{if({rule02(1)}!=):02 }{if({rule03(1)}!=):03 }{if({rule04(1)}!=):04 }{if({rule05(1)}!=):05 }{if({rule06(1)}!=):06 }{if({rule07(1)}!=):07 }{if({rule08(1)}!=):08 }{if({rule09(1)}!=):09 }{if({rule10(1)}!=):10 }{if({rule11(1)}!=):11 }{if({rule12(1)}!=):12 }{if({rule13(1)}!=):13 }{if({rule14(1)}!=):14 }{if({rule15(1)}!=):15 }{if({rule16(1)}!=):16 }{if({rule17(1)}!=):17 }{if({rule18(1)}!=):18 }{if({rule19(1)}!=):19 }{if({rule20(1)}!=):20 }{if({rule21(1)}!=):21 }{if({rule22(1)}!=):22 }{if({rule23(1)}!=):23 }{if({rule24(1)}!=):24 }{if({rule25(1)}!=):25}}

{=(comment):Takes out the first channel mention present in args assuming it is present due to the desire for the rules to be sent to that channel}
{=(sanschan):{if({in(<#):{args}}==true):{replace({args({index(<#):{replace(<#,. <# .):{args}}})},):{args}}|{args}}}

{=(comment):DON'T TOUCH, converts keywords into rule numbers}
{=(wordswap):{lower:{sanschan}}}
{=(wordswap):{if({keyword01}!=):{if({in({keyword01}):{wordswap}}==true):{replace({wordswap({index({keyword01}):{replace({keyword01},. {keyword01} .):{wordswap}}})},01):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword02}!=):{if({in({keyword02}):{wordswap}}==true):{replace({wordswap({index({keyword02}):{replace({keyword02},. {keyword02} .):{wordswap}}})},02):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword03}!=):{if({in({keyword03}):{wordswap}}==true):{replace({wordswap({index({keyword03}):{replace({keyword03},. {keyword03} .):{wordswap}}})},03):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword04}!=):{if({in({keyword04}):{wordswap}}==true):{replace({wordswap({index({keyword04}):{replace({keyword04},. {keyword04} .):{wordswap}}})},04):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword05}!=):{if({in({keyword05}):{wordswap}}==true):{replace({wordswap({index({keyword05}):{replace({keyword05},. {keyword05} .):{wordswap}}})},05):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword06}!=):{if({in({keyword06}):{wordswap}}==true):{replace({wordswap({index({keyword06}):{replace({keyword06},. {keyword06} .):{wordswap}}})},06):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword07}!=):{if({in({keyword07}):{wordswap}}==true):{replace({wordswap({index({keyword07}):{replace({keyword07},. {keyword07} .):{wordswap}}})},07):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword08}!=):{if({in({keyword08}):{wordswap}}==true):{replace({wordswap({index({keyword08}):{replace({keyword08},. {keyword08} .):{wordswap}}})},08):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword09}!=):{if({in({keyword09}):{wordswap}}==true):{replace({wordswap({index({keyword09}):{replace({keyword09},. {keyword09} .):{wordswap}}})},09):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword10}!=):{if({in({keyword10}):{wordswap}}==true):{replace({wordswap({index({keyword10}):{replace({keyword10},. {keyword10} .):{wordswap}}})},10):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword11}!=):{if({in({keyword11}):{wordswap}}==true):{replace({wordswap({index({keyword11}):{replace({keyword11},. {keyword11} .):{wordswap}}})},11):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword12}!=):{if({in({keyword12}):{wordswap}}==true):{replace({wordswap({index({keyword12}):{replace({keyword12},. {keyword12} .):{wordswap}}})},12):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword13}!=):{if({in({keyword13}):{wordswap}}==true):{replace({wordswap({index({keyword13}):{replace({keyword13},. {keyword13} .):{wordswap}}})},13):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword14}!=):{if({in({keyword14}):{wordswap}}==true):{replace({wordswap({index({keyword14}):{replace({keyword14},. {keyword14} .):{wordswap}}})},14):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword15}!=):{if({in({keyword15}):{wordswap}}==true):{replace({wordswap({index({keyword15}):{replace({keyword15},. {keyword15} .):{wordswap}}})},15):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword16}!=):{if({in({keyword16}):{wordswap}}==true):{replace({wordswap({index({keyword16}):{replace({keyword16},. {keyword16} .):{wordswap}}})},16):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword17}!=):{if({in({keyword17}):{wordswap}}==true):{replace({wordswap({index({keyword17}):{replace({keyword17},. {keyword17} .):{wordswap}}})},17):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword18}!=):{if({in({keyword18}):{wordswap}}==true):{replace({wordswap({index({keyword18}):{replace({keyword18},. {keyword18} .):{wordswap}}})},18):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword19}!=):{if({in({keyword19}):{wordswap}}==true):{replace({wordswap({index({keyword19}):{replace({keyword19},. {keyword19} .):{wordswap}}})},19):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword20}!=):{if({in({keyword20}):{wordswap}}==true):{replace({wordswap({index({keyword20}):{replace({keyword20},. {keyword20} .):{wordswap}}})},20):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword21}!=):{if({in({keyword21}):{wordswap}}==true):{replace({wordswap({index({keyword21}):{replace({keyword21},. {keyword21} .):{wordswap}}})},21):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword22}!=):{if({in({keyword22}):{wordswap}}==true):{replace({wordswap({index({keyword22}):{replace({keyword22},. {keyword22} .):{wordswap}}})},22):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword23}!=):{if({in({keyword23}):{wordswap}}==true):{replace({wordswap({index({keyword23}):{replace({keyword23},. {keyword23} .):{wordswap}}})},23):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword24}!=):{if({in({keyword24}):{wordswap}}==true):{replace({wordswap({index({keyword24}):{replace({keyword24},. {keyword24} .):{wordswap}}})},24):{wordswap}}|{wordswap}}|{wordswap}}}
{=(wordswap):{if({keyword25}!=):{if({in({keyword25}):{wordswap}}==true):{replace({wordswap({index({keyword25}):{replace({keyword25},. {keyword25} .):{wordswap}}})},25):{wordswap}}|{wordswap}}|{wordswap}}}

{=(comment):adds leading zeros to single digit numbers: spaces symbols, replaces spaces with ~, replaces ~#~ with ~0#~, replaces ~ with spaces, de-spaces symbols}
{=(sani):{replace( - ,-):{replace( + ,+):{replace(~, ):{replace(~1~,~01~):{replace(~2~,~02~):{replace(~3~,~03~):{replace(~4~,~04~):{replace(~5~,~05~):{replace(~6~,~06~):{replace(~7~,~07~):{replace(~8~,~08~):{replace(~9~,~09~):{replace( ,~):{replace(-, - ):{replace(+, + ):~{wordswap}~}}}}}}}}}}}}}}}}

{=(comment):DON'T TOUCH, replaces - and + with the rule numbers from the list they represent}
{=(dash1):{sani(1):-}}
{=(dash2):{sani(2):-}}
{=(dash):{if({in(-):{sani}}==true):{dash1}{replace({rules(+{m:trunc(1+{index({dash1(0)}):{rules}})})},):{replace({rules({m:trunc(1+{index({dash2(1)}):{rules}})}+)},):{rules}}}{dash2}|{sani}}}
{=(plus1):{dash(1):+}}
{=(plus2):{dash(2):+}}
{=(plus3):{dash(3):+}}
{=(plus):{if({in(+):{dash}}==true):{if({plus1}!=):{if({plus1(+-1)}!=):{plus1(+-1)} }{rules({m:trunc(1+{index({plus1(0)}):{rules}})}+)} }{if({plus2}!=):{rules(+{m:trunc(1+{index({plus2(1)}):{rules}})})} {if({plus2(2+)}!=):{plus2(2+)} }}{if({plus3}==):{rules({m:trunc({index({plus2(0)}):{rules}}+2)}+)}|{rules(+{m:trunc(1+{index({plus3(1)}):{rules}})})} {if({plus3(2+)}!=):{plus3(2+)}}}|{dash}}}

{=(comment):rebuilds input list based on inclusion in rule list, while preventing duplicates. if rawlist entity 0-24 is not empty, is in the rules variable which is autopopulated, and is not already present in the new number list, said rawlist entity is added to num}
{=(rawlist):{join(,):{plus}}}
{=(num):}
{=(num):{num}{all({list(0):{rawlist}}!=|{contains({list(0):{rawlist}}):{rules}}==true|{contains({list(0):{rawlist}}):{num}}==false):{list(0):{rawlist}} }}
{=(num):{num}{all({list(1):{rawlist}}!=|{contains({list(1):{rawlist}}):{rules}}==true|{contains({list(1):{rawlist}}):{num}}==false):{list(1):{rawlist}} }}
{=(num):{num}{all({list(2):{rawlist}}!=|{contains({list(2):{rawlist}}):{rules}}==true|{contains({list(2):{rawlist}}):{num}}==false):{list(2):{rawlist}} }}
{=(num):{num}{all({list(3):{rawlist}}!=|{contains({list(3):{rawlist}}):{rules}}==true|{contains({list(3):{rawlist}}):{num}}==false):{list(3):{rawlist}} }}
{=(num):{num}{all({list(4):{rawlist}}!=|{contains({list(4):{rawlist}}):{rules}}==true|{contains({list(4):{rawlist}}):{num}}==false):{list(4):{rawlist}} }}
{=(num):{num}{all({list(5):{rawlist}}!=|{contains({list(5):{rawlist}}):{rules}}==true|{contains({list(5):{rawlist}}):{num}}==false):{list(5):{rawlist}} }}
{=(num):{num}{all({list(6):{rawlist}}!=|{contains({list(6):{rawlist}}):{rules}}==true|{contains({list(6):{rawlist}}):{num}}==false):{list(6):{rawlist}} }}
{=(num):{num}{all({list(7):{rawlist}}!=|{contains({list(7):{rawlist}}):{rules}}==true|{contains({list(7):{rawlist}}):{num}}==false):{list(7):{rawlist}} }}
{=(num):{num}{all({list(8):{rawlist}}!=|{contains({list(8):{rawlist}}):{rules}}==true|{contains({list(8):{rawlist}}):{num}}==false):{list(8):{rawlist}} }}
{=(num):{num}{all({list(9):{rawlist}}!=|{contains({list(9):{rawlist}}):{rules}}==true|{contains({list(9):{rawlist}}):{num}}==false):{list(9):{rawlist}} }}
{=(num):{num}{all({list(10):{rawlist}}!=|{contains({list(10):{rawlist}}):{rules}}==true|{contains({list(10):{rawlist}}):{num}}==false):{list(10):{rawlist}} }}
{=(num):{num}{all({list(11):{rawlist}}!=|{contains({list(11):{rawlist}}):{rules}}==true|{contains({list(11):{rawlist}}):{num}}==false):{list(11):{rawlist}} }}
{=(num):{num}{all({list(12):{rawlist}}!=|{contains({list(12):{rawlist}}):{rules}}==true|{contains({list(12):{rawlist}}):{num}}==false):{list(12):{rawlist}} }}
{=(num):{num}{all({list(13):{rawlist}}!=|{contains({list(13):{rawlist}}):{rules}}==true|{contains({list(13):{rawlist}}):{num}}==false):{list(13):{rawlist}} }}
{=(num):{num}{all({list(14):{rawlist}}!=|{contains({list(14):{rawlist}}):{rules}}==true|{contains({list(14):{rawlist}}):{num}}==false):{list(14):{rawlist}} }}
{=(num):{num}{all({list(15):{rawlist}}!=|{contains({list(15):{rawlist}}):{rules}}==true|{contains({list(15):{rawlist}}):{num}}==false):{list(15):{rawlist}} }}
{=(num):{num}{all({list(16):{rawlist}}!=|{contains({list(16):{rawlist}}):{rules}}==true|{contains({list(16):{rawlist}}):{num}}==false):{list(16):{rawlist}} }}
{=(num):{num}{all({list(17):{rawlist}}!=|{contains({list(17):{rawlist}}):{rules}}==true|{contains({list(17):{rawlist}}):{num}}==false):{list(17):{rawlist}} }}
{=(num):{num}{all({list(18):{rawlist}}!=|{contains({list(18):{rawlist}}):{rules}}==true|{contains({list(18):{rawlist}}):{num}}==false):{list(18):{rawlist}} }}
{=(num):{num}{all({list(19):{rawlist}}!=|{contains({list(19):{rawlist}}):{rules}}==true|{contains({list(19):{rawlist}}):{num}}==false):{list(19):{rawlist}} }}
{=(num):{num}{all({list(20):{rawlist}}!=|{contains({list(20):{rawlist}}):{rules}}==true|{contains({list(20):{rawlist}}):{num}}==false):{list(20):{rawlist}} }}
{=(num):{num}{all({list(21):{rawlist}}!=|{contains({list(21):{rawlist}}):{rules}}==true|{contains({list(21):{rawlist}}):{num}}==false):{list(21):{rawlist}} }}
{=(num):{num}{all({list(22):{rawlist}}!=|{contains({list(22):{rawlist}}):{rules}}==true|{contains({list(22):{rawlist}}):{num}}==false):{list(22):{rawlist}} }}
{=(num):{num}{all({list(23):{rawlist}}!=|{contains({list(23):{rawlist}}):{rules}}==true|{contains({list(23):{rawlist}}):{num}}==false):{list(23):{rawlist}} }}
{=(num):{num}{all({list(24):{rawlist}}!=|{contains({list(24):{rawlist}}):{rules}}==true|{contains({list(24):{rawlist}}):{num}}==false):{list(24):{rawlist}}}}

{=(comment):The following tests to see if args are empty, or if help or keyword are present, or if the input failed to generate a shortened list of rules, and if so, sets the rule numbers to the full list of rules}
{=(largs):{lower:{args}}}
{=(num):{any({largs(1)}==|{all({in(help):{largs}}==false|{in(keyword):{largs}}==false|{num}==):true|false}==true):{join(,):{rules}}|{join(,):{num}}}}

{=(comment):Embed field generation for rule output, don't touch. ┐ = comma placeholder character}
{=(ilf):,"inline":false}
{=(cfields):{if({list(0):{num}}!=):{"name":"{t{list(0):{num}}}","value":"{rule{list(0):{num}}}"{ilf}}}┐{if({list(1):{num}}!=):{"name":"{t{list(1):{num}}}","value":"{rule{list(1):{num}}}"{ilf}}}┐{if({list(2):{num}}!=):{"name":"{t{list(2):{num}}}","value":"{rule{list(2):{num}}}"{ilf}}}┐{if({list(3):{num}}!=):{"name":"{t{list(3):{num}}}","value":"{rule{list(3):{num}}}"{ilf}}}┐{if({list(4):{num}}!=):{"name":"{t{list(4):{num}}}","value":"{rule{list(4):{num}}}"{ilf}}}┐{if({list(5):{num}}!=):{"name":"{t{list(5):{num}}}","value":"{rule{list(5):{num}}}"{ilf}}}┐{if({list(6):{num}}!=):{"name":"{t{list(6):{num}}}","value":"{rule{list(6):{num}}}"{ilf}}}┐{if({list(7):{num}}!=):{"name":"{t{list(7):{num}}}","value":"{rule{list(7):{num}}}"{ilf}}}┐{if({list(8):{num}}!=):{"name":"{t{list(8):{num}}}","value":"{rule{list(8):{num}}}"{ilf}}}┐{if({list(9):{num}}!=):{"name":"{t{list(9):{num}}}","value":"{rule{list(9):{num}}}"{ilf}}}┐{if({list(10):{num}}!=):{"name":"{t{list(10):{num}}}","value":"{rule{list(10):{num}}}"{ilf}}}┐{if({list(11):{num}}!=):{"name":"{t{list(11):{num}}}","value":"{rule{list(11):{num}}}"{ilf}}}┐{if({list(12):{num}}!=):{"name":"{t{list(12):{num}}}","value":"{rule{list(12):{num}}}"{ilf}}}┐{if({list(13):{num}}!=):{"name":"{t{list(13):{num}}}","value":"{rule{list(13):{num}}}"{ilf}}}┐{if({list(14):{num}}!=):{"name":"{t{list(14):{num}}}","value":"{rule{list(14):{num}}}"{ilf}}}┐{if({list(15):{num}}!=):{"name":"{t{list(15):{num}}}","value":"{rule{list(15):{num}}}"{ilf}}}┐{if({list(16):{num}}!=):{"name":"{t{list(16):{num}}}","value":"{rule{list(16):{num}}}"{ilf}}}┐{if({list(17):{num}}!=):{"name":"{t{list(17):{num}}}","value":"{rule{list(17):{num}}}"{ilf}}}┐{if({list(18):{num}}!=):{"name":"{t{list(18):{num}}}","value":"{rule{list(18):{num}}}"{ilf}}}┐{if({list(19):{num}}!=):{"name":"{t{list(19):{num}}}","value":"{rule{list(19):{num}}}"{ilf}}}┐{if({list(20):{num}}!=):{"name":"{t{list(20):{num}}}","value":"{rule{list(20):{num}}}"{ilf}}}┐{if({list(21):{num}}!=):{"name":"{t{list(21):{num}}}","value":"{rule{list(21):{num}}}"{ilf}}}┐{if({list(22):{num}}!=):{"name":"{t{list(22):{num}}}","value":"{rule{list(22):{num}}}"{ilf}}}┐{if({list(23):{num}}!=):{"name":"{t{list(23):{num}}}","value":"{rule{list(23):{num}}}"{ilf}}}┐{if({list(24):{num}}!=):{"name":"{t{list(24):{num}}}","value":"{rule{list(24):{num}}}"{ilf}}}}

{=(comment):different description holding variables}
{=(instr):__Instructions__
Follow the command with the number(s) of the rules you wish to output with spaces in between. Additional accepted formats are:
#*x*-#*y* to indicate rules from #*x* to #*y* (limit 1x`-`)
#+ to indicate rules from # to the end of the list of rules
+# to indicate rules from 1 to # (limit 2x`+`)
You can also mix in keywords that have been set (don't mix keywords and symbols).
Examples: `!rules +2 nsfw 4-6 8+` }

{=(kw):__Keywords__
{keyword01} {keyword02} {keyword03} {keyword04} {keyword05} {keyword06} {keyword07} {keyword08} {keyword09} {keyword10} {keyword11} {keyword12} {keyword13} {keyword14} {keyword15} {keyword16} {keyword17} {keyword18} {keyword19} {keyword20} {keyword21} {keyword22} {keyword23} {keyword24} {keyword25}}

{=(comment):Embed fields}
{=(footer):Type \"!rules help\" for instructions, and \"!rules keywords\" for the list of reference keywords.}
{=(des):{if({in(help):{largs}}==true):{instr}|{if({in(keyword):{largs}}==true):{kw}|{if({ruleschannelid}!=):<#{ruleschannelid}>}}}}

{=(comment):finalizes the json for the embed by replacing spaces with a filler character, replacing comma placeholder characters with spaces, joining the spaces with commas, and replacing the filler characters with spaces again. this ensures there are no commas preceeding JSON fields, nor trailing the last JSON field. also includes logic choosing whether to display the full rules list (if args or the input number list are empty AND help/keyword are not displayed) or the custom rules list}
{=(json):"title":"{embedtitle}","description":"{des}","fields":[{replace(█, ):{join(,):{replace(┐, ):{replace( ,█):{cfields}}}}}],"author":{"name":"{server}","icon_url":"{server(icon)}"},"color":3092790,"footer":{"text":"{footer}"}}

{c:cembed {if({in(<#):{args}}==true):{args({index(<#):{replace(<#,. <# .):{args}}})}|{channel(id)}} {{json}}}
Raw JSON
{
  "id": 123874,
  "created_at": "2020-02-24T00:28:52.000Z",
  "tag_name": "rules",
  "nsfw": false,
  "owner_id": "580252301030326273",
  "uses": 21,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "598254746301759518",
  "sharer": "580252301030326273",
  "content": "{=(comment):If you would like the tag to always display a link to your rules channel in the description when you are listing rules}\n{=(comment):Insert the channel id of your rules channel below. Leave completely blank and it will not display.}\n{=(ruleschannelid):598255194177798150}\n\n{=(comment):Add, change or remove the embed title here}\n{=(embedtitle):}\n\n{=(comment):Put custom titles in the title1-title25 variables (if you want them).}\n{=(comment):Put keywords for each rule in the keyword1-keyword25 variables. Not required but useful.}\n{=(comment):Put rules in the rule1-rule25 variables.}\n{=(comment):Titles must be less than 256 characters, and rules must be less than 1024 characters.}\n{=(comment):Some symbols in rule text might cause issues, limit formatting to Discord markdown friendly characters.}\n{=(comment):Leave custom titles blank to have the titles just be \"Rule #\".}\n{=(comment):Leave corresponding title, keyword, and rule variables blank if the rule # does not exist, but do NOT erase the blank variables}\n\n{=(title01):}\n{=(keyword01):}\n{=(rule01):• MOST IMPORTANT RULE! NO GRIEFING OR TOXIC BEHAVIOR.\n Everyone is here to enjoy their time, if you are found to be griefing or trolling other players, an Admin will be having a little chat with you. If it continues you may be banned.\n  \n\nAdministration is not responsible for making sure that you are within the rules - YOU are responsible for making sure that YOU are within the rules. If You have any doubt or unclarity whatsoever, please do not hesitate to ask. Communication is key.\n}\n\n{=(title02):}\n{=(keyword02):}\n{=(rule02):• NO SPAWN BLOCKING. Please make sure not to block major resource nodes or NPC spawns, as well as blocking emotes and recipes. Illegal builds will be dismantled without warning.\n}\n\n{=(title03):}\n{=(keyword03):}\n{=(rule03):• NO BUILDS ON, OR SOUTH OF, NOOB RIVER. Noob river is the first river you approach in the starting area. Please move north into the map more. 4e to 4i  and South will be swept for unauthorized builds regularly. ALL BUILDS FOUND THERE WILL BE DESTROYED. Repeat offenders will be banished from our lands.\n}\n\n{=(title04):}\n{=(keyword04):}\n{=(rule04):• NO OPEN CRAFTING STATIONS. This includes your wheels of pain around the map. Crafting stations should be in your base. - Please build small buildings to house wheels of pain for thralling, and make them look nice! Nothing to large. Be reasonable.\n}\n\n{=(title05):}\n{=(keyword05):choice}\n{=(rule05):• NO altars or vaults outside main base\n}\n\n{=(title06):}\n{=(keyword06):spam}\n{=(rule06):• NO VOLCANO BUILDS! No building is allowed inside the volcano. A thrall wheel may be used temporarily, but remove it after you get your thralls. This area is off limits for building and will be swept regulary. Same as south of Noob river.\n}\n\n{=(title07):}\n{=(keyword07):}\n{=(rule07):• BASE RESTRICTIONS \n    Clans are limited to 1 main base, up to 25 percent of a map square. If you are found with multiple bases one will be wiped without notice! \n}\n\n{=(title08):}\n{=(keyword08):}\n{=(rule08):• OUTPOSTS. We don't want people building  giant outposts, so we are limiting this to 1 outpost per clan, a maximum size of 9x5x3. A building this size can fit everything you would need for a fully functional outpost. \n}\n\n{=(title09):}\n{=(keyword09):}\n{=(rule09):• FLAG SYSTEM.   \n    12 flags max per base, 1 per WOP\n    \n    Flags will be changed monthly to keep track of active users.\n  You will have 1 week to change your flag when a new flag is issued. After that one week you MAY be notified if your base is found to have an outdated flag. If you do not respond within 24 hours your base will be wiped. Your base may be wiped without notice if it has been more than 2 weeks since a flag change. \n}\n\n{=(title10):}\n{=(keyword10):}\n{=(rule10):• You MUST declare all raids in the War Declarations page 24 hours before attacking. NO RANDOM RAIDING. You must negotiate a War if you do not want to fight or if you can not be online that weekend. If negotiations are not successful you must defend yourself. NO offline raiding may take place until this negotiation process takes place. Raiding means destroying any part of a structure to gain entry. \n}\n\n{=(title11):}\n{=(keyword11):}\n{=(rule11):•  Theft is NOT raiding and does not have to be role played! It is your responsibility to build so that people walking by cannot steal from you. Lock your chests, build structures, and don't place crafting stations near windows or have them poking out of your walls. Theft IS a shameful act and may be posted to the wall of shame. It is up to you to negotiate with the thieves to a peaceful outcome, or a war.\n}\n\n{=(title12):}\n{=(keyword12):}\n{=(rule12):• NO vague War Declarations. You may NOT simply state that you are declaring war on 'everyone in map square H9' or 'the entire server', you must tag each clan individually so they are properly notified and given full opportunity to participate in negotiations. You must also state your reason for the declaration.\n}\n\n{=(title13):}\n{=(keyword13):}\n{=(rule13):• You must ALWAYS DECLARE WAR when raiding. Unflagged bases must be approved by Admin in Discord. Post screen shots in Declaration. \n    Unclanned bases also should be reported and may be investigated to see if we can determine who it belongs to before approving its destruction.\n    Abandoned bases no longer require 24hr wait period after declaring, if they have been verified as abandoned. \n}\n\n{=(title14):}\n{=(keyword14):}\n{=(rule14):• Wars will operate as raids and limited to 2 attacks against the same clan if there is no retaliation. Any more than 2 attacks against the same player/clan with no retaliation counts as griefing. If there is a retaliation, war continues until one side surrenders.\n\n    Retaliation: the action of harming someone because they have harmed you; revenge.\n}\n\n{=(title15):}\n{=(keyword15):}\n{=(rule15):• FORM A CLAN, EVEN IF YOU ARE THE ONLY PERSON IN IT.\n}\n\n{=(title16):}\n{=(keyword16):}\n{=(rule16):• USE YOUR CHARACTER NAME AS YOUR DISCORD NAME SO WE KNOW WHO WE ARE TALKING TO\n}\n\n{=(title17):}\n{=(keyword17):}\n{=(rule17):}\n\n{=(title18):}\n{=(keyword18):}\n{=(rule18):}\n\n{=(title19):}\n{=(keyword19):}\n{=(rule19):}\n\n{=(title20):}\n{=(keyword20):}\n{=(rule20):}\n\n{=(title21):}\n{=(keyword21):}\n{=(rule21):}\n\n{=(title22):}\n{=(keyword22):}\n{=(rule22):}\n\n{=(title23):}\n{=(keyword23):}\n{=(rule23):}\n\n{=(title24):}\n{=(keyword24):}\n{=(rule24):}\n\n{=(title25):}\n{=(keyword25):}\n{=(rule25):}\n\n\n\n{=(comment):Title overrides, don't touch except to translate \"Rule\" into a different language}\n{=(wordforrule):Rule}\n{=(comment):Don't touch}\n{=(t01):{if({title01}!=):{title01}|{wordforrule} 1}}\n{=(t02):{if({title02}!=):{title02}|{wordforrule} 2}}\n{=(t03):{if({title03}!=):{title03}|{wordforrule} 3}}\n{=(t04):{if({title04}!=):{title04}|{wordforrule} 4}}\n{=(t05):{if({title05}!=):{title05}|{wordforrule} 5}}\n{=(t06):{if({title06}!=):{title06}|{wordforrule} 6}}\n{=(t07):{if({title07}!=):{title07}|{wordforrule} 7}}\n{=(t08):{if({title08}!=):{title08}|{wordforrule} 8}}\n{=(t09):{if({title09}!=):{title09}|{wordforrule} 9}}\n{=(t10):{if({title10}!=):{title10}|{wordforrule} 10}}\n{=(t11):{if({title11}!=):{title11}|{wordforrule} 11}}\n{=(t12):{if({title12}!=):{title12}|{wordforrule} 12}}\n{=(t13):{if({title13}!=):{title13}|{wordforrule} 13}}\n{=(t14):{if({title14}!=):{title14}|{wordforrule} 14}}\n{=(t15):{if({title15}!=):{title15}|{wordforrule} 15}}\n{=(t16):{if({title16}!=):{title16}|{wordforrule} 16}}\n{=(t17):{if({title17}!=):{title17}|{wordforrule} 17}}\n{=(t18):{if({title18}!=):{title18}|{wordforrule} 18}}\n{=(t19):{if({title19}!=):{title19}|{wordforrule} 19}}\n{=(t20):{if({title20}!=):{title20}|{wordforrule} 20}}\n{=(t21):{if({title21}!=):{title21}|{wordforrule} 21}}\n{=(t22):{if({title22}!=):{title22}|{wordforrule} 22}}\n{=(t23):{if({title23}!=):{title23}|{wordforrule} 23}}\n{=(t24):{if({title24}!=):{title24}|{wordforrule} 24}}\n{=(t25):{if({title25}!=):{title25}|{wordforrule} 25}}\n\n{=(comment):builds the list of rule numbers for rules that are populated}\n{=(rules):{if({rule01(1)}!=):01 }{if({rule02(1)}!=):02 }{if({rule03(1)}!=):03 }{if({rule04(1)}!=):04 }{if({rule05(1)}!=):05 }{if({rule06(1)}!=):06 }{if({rule07(1)}!=):07 }{if({rule08(1)}!=):08 }{if({rule09(1)}!=):09 }{if({rule10(1)}!=):10 }{if({rule11(1)}!=):11 }{if({rule12(1)}!=):12 }{if({rule13(1)}!=):13 }{if({rule14(1)}!=):14 }{if({rule15(1)}!=):15 }{if({rule16(1)}!=):16 }{if({rule17(1)}!=):17 }{if({rule18(1)}!=):18 }{if({rule19(1)}!=):19 }{if({rule20(1)}!=):20 }{if({rule21(1)}!=):21 }{if({rule22(1)}!=):22 }{if({rule23(1)}!=):23 }{if({rule24(1)}!=):24 }{if({rule25(1)}!=):25}}\n\n{=(comment):Takes out the first channel mention present in args assuming it is present due to the desire for the rules to be sent to that channel}\n{=(sanschan):{if({in(<#):{args}}==true):{replace({args({index(<#):{replace(<#,. <# .):{args}}})},):{args}}|{args}}}\n\n{=(comment):DON'T TOUCH, converts keywords into rule numbers}\n{=(wordswap):{lower:{sanschan}}}\n{=(wordswap):{if({keyword01}!=):{if({in({keyword01}):{wordswap}}==true):{replace({wordswap({index({keyword01}):{replace({keyword01},. {keyword01} .):{wordswap}}})},01):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword02}!=):{if({in({keyword02}):{wordswap}}==true):{replace({wordswap({index({keyword02}):{replace({keyword02},. {keyword02} .):{wordswap}}})},02):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword03}!=):{if({in({keyword03}):{wordswap}}==true):{replace({wordswap({index({keyword03}):{replace({keyword03},. {keyword03} .):{wordswap}}})},03):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword04}!=):{if({in({keyword04}):{wordswap}}==true):{replace({wordswap({index({keyword04}):{replace({keyword04},. {keyword04} .):{wordswap}}})},04):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword05}!=):{if({in({keyword05}):{wordswap}}==true):{replace({wordswap({index({keyword05}):{replace({keyword05},. {keyword05} .):{wordswap}}})},05):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword06}!=):{if({in({keyword06}):{wordswap}}==true):{replace({wordswap({index({keyword06}):{replace({keyword06},. {keyword06} .):{wordswap}}})},06):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword07}!=):{if({in({keyword07}):{wordswap}}==true):{replace({wordswap({index({keyword07}):{replace({keyword07},. {keyword07} .):{wordswap}}})},07):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword08}!=):{if({in({keyword08}):{wordswap}}==true):{replace({wordswap({index({keyword08}):{replace({keyword08},. {keyword08} .):{wordswap}}})},08):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword09}!=):{if({in({keyword09}):{wordswap}}==true):{replace({wordswap({index({keyword09}):{replace({keyword09},. {keyword09} .):{wordswap}}})},09):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword10}!=):{if({in({keyword10}):{wordswap}}==true):{replace({wordswap({index({keyword10}):{replace({keyword10},. {keyword10} .):{wordswap}}})},10):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword11}!=):{if({in({keyword11}):{wordswap}}==true):{replace({wordswap({index({keyword11}):{replace({keyword11},. {keyword11} .):{wordswap}}})},11):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword12}!=):{if({in({keyword12}):{wordswap}}==true):{replace({wordswap({index({keyword12}):{replace({keyword12},. {keyword12} .):{wordswap}}})},12):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword13}!=):{if({in({keyword13}):{wordswap}}==true):{replace({wordswap({index({keyword13}):{replace({keyword13},. {keyword13} .):{wordswap}}})},13):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword14}!=):{if({in({keyword14}):{wordswap}}==true):{replace({wordswap({index({keyword14}):{replace({keyword14},. {keyword14} .):{wordswap}}})},14):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword15}!=):{if({in({keyword15}):{wordswap}}==true):{replace({wordswap({index({keyword15}):{replace({keyword15},. {keyword15} .):{wordswap}}})},15):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword16}!=):{if({in({keyword16}):{wordswap}}==true):{replace({wordswap({index({keyword16}):{replace({keyword16},. {keyword16} .):{wordswap}}})},16):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword17}!=):{if({in({keyword17}):{wordswap}}==true):{replace({wordswap({index({keyword17}):{replace({keyword17},. {keyword17} .):{wordswap}}})},17):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword18}!=):{if({in({keyword18}):{wordswap}}==true):{replace({wordswap({index({keyword18}):{replace({keyword18},. {keyword18} .):{wordswap}}})},18):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword19}!=):{if({in({keyword19}):{wordswap}}==true):{replace({wordswap({index({keyword19}):{replace({keyword19},. {keyword19} .):{wordswap}}})},19):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword20}!=):{if({in({keyword20}):{wordswap}}==true):{replace({wordswap({index({keyword20}):{replace({keyword20},. {keyword20} .):{wordswap}}})},20):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword21}!=):{if({in({keyword21}):{wordswap}}==true):{replace({wordswap({index({keyword21}):{replace({keyword21},. {keyword21} .):{wordswap}}})},21):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword22}!=):{if({in({keyword22}):{wordswap}}==true):{replace({wordswap({index({keyword22}):{replace({keyword22},. {keyword22} .):{wordswap}}})},22):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword23}!=):{if({in({keyword23}):{wordswap}}==true):{replace({wordswap({index({keyword23}):{replace({keyword23},. {keyword23} .):{wordswap}}})},23):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword24}!=):{if({in({keyword24}):{wordswap}}==true):{replace({wordswap({index({keyword24}):{replace({keyword24},. {keyword24} .):{wordswap}}})},24):{wordswap}}|{wordswap}}|{wordswap}}}\n{=(wordswap):{if({keyword25}!=):{if({in({keyword25}):{wordswap}}==true):{replace({wordswap({index({keyword25}):{replace({keyword25},. {keyword25} .):{wordswap}}})},25):{wordswap}}|{wordswap}}|{wordswap}}}\n\n{=(comment):adds leading zeros to single digit numbers: spaces symbols, replaces spaces with ~, replaces ~#~ with ~0#~, replaces ~ with spaces, de-spaces symbols}\n{=(sani):{replace( - ,-):{replace( + ,+):{replace(~, ):{replace(~1~,~01~):{replace(~2~,~02~):{replace(~3~,~03~):{replace(~4~,~04~):{replace(~5~,~05~):{replace(~6~,~06~):{replace(~7~,~07~):{replace(~8~,~08~):{replace(~9~,~09~):{replace( ,~):{replace(-, - ):{replace(+, + ):~{wordswap}~}}}}}}}}}}}}}}}}\n\n{=(comment):DON'T TOUCH, replaces - and + with the rule numbers from the list they represent}\n{=(dash1):{sani(1):-}}\n{=(dash2):{sani(2):-}}\n{=(dash):{if({in(-):{sani}}==true):{dash1}{replace({rules(+{m:trunc(1+{index({dash1(0)}):{rules}})})},):{replace({rules({m:trunc(1+{index({dash2(1)}):{rules}})}+)},):{rules}}}{dash2}|{sani}}}\n{=(plus1):{dash(1):+}}\n{=(plus2):{dash(2):+}}\n{=(plus3):{dash(3):+}}\n{=(plus):{if({in(+):{dash}}==true):{if({plus1}!=):{if({plus1(+-1)}!=):{plus1(+-1)} }{rules({m:trunc(1+{index({plus1(0)}):{rules}})}+)} }{if({plus2}!=):{rules(+{m:trunc(1+{index({plus2(1)}):{rules}})})} {if({plus2(2+)}!=):{plus2(2+)} }}{if({plus3}==):{rules({m:trunc({index({plus2(0)}):{rules}}+2)}+)}|{rules(+{m:trunc(1+{index({plus3(1)}):{rules}})})} {if({plus3(2+)}!=):{plus3(2+)}}}|{dash}}}\n\n{=(comment):rebuilds input list based on inclusion in rule list, while preventing duplicates. if rawlist entity 0-24 is not empty, is in the rules variable which is autopopulated, and is not already present in the new number list, said rawlist entity is added to num}\n{=(rawlist):{join(,):{plus}}}\n{=(num):}\n{=(num):{num}{all({list(0):{rawlist}}!=|{contains({list(0):{rawlist}}):{rules}}==true|{contains({list(0):{rawlist}}):{num}}==false):{list(0):{rawlist}} }}\n{=(num):{num}{all({list(1):{rawlist}}!=|{contains({list(1):{rawlist}}):{rules}}==true|{contains({list(1):{rawlist}}):{num}}==false):{list(1):{rawlist}} }}\n{=(num):{num}{all({list(2):{rawlist}}!=|{contains({list(2):{rawlist}}):{rules}}==true|{contains({list(2):{rawlist}}):{num}}==false):{list(2):{rawlist}} }}\n{=(num):{num}{all({list(3):{rawlist}}!=|{contains({list(3):{rawlist}}):{rules}}==true|{contains({list(3):{rawlist}}):{num}}==false):{list(3):{rawlist}} }}\n{=(num):{num}{all({list(4):{rawlist}}!=|{contains({list(4):{rawlist}}):{rules}}==true|{contains({list(4):{rawlist}}):{num}}==false):{list(4):{rawlist}} }}\n{=(num):{num}{all({list(5):{rawlist}}!=|{contains({list(5):{rawlist}}):{rules}}==true|{contains({list(5):{rawlist}}):{num}}==false):{list(5):{rawlist}} }}\n{=(num):{num}{all({list(6):{rawlist}}!=|{contains({list(6):{rawlist}}):{rules}}==true|{contains({list(6):{rawlist}}):{num}}==false):{list(6):{rawlist}} }}\n{=(num):{num}{all({list(7):{rawlist}}!=|{contains({list(7):{rawlist}}):{rules}}==true|{contains({list(7):{rawlist}}):{num}}==false):{list(7):{rawlist}} }}\n{=(num):{num}{all({list(8):{rawlist}}!=|{contains({list(8):{rawlist}}):{rules}}==true|{contains({list(8):{rawlist}}):{num}}==false):{list(8):{rawlist}} }}\n{=(num):{num}{all({list(9):{rawlist}}!=|{contains({list(9):{rawlist}}):{rules}}==true|{contains({list(9):{rawlist}}):{num}}==false):{list(9):{rawlist}} }}\n{=(num):{num}{all({list(10):{rawlist}}!=|{contains({list(10):{rawlist}}):{rules}}==true|{contains({list(10):{rawlist}}):{num}}==false):{list(10):{rawlist}} }}\n{=(num):{num}{all({list(11):{rawlist}}!=|{contains({list(11):{rawlist}}):{rules}}==true|{contains({list(11):{rawlist}}):{num}}==false):{list(11):{rawlist}} }}\n{=(num):{num}{all({list(12):{rawlist}}!=|{contains({list(12):{rawlist}}):{rules}}==true|{contains({list(12):{rawlist}}):{num}}==false):{list(12):{rawlist}} }}\n{=(num):{num}{all({list(13):{rawlist}}!=|{contains({list(13):{rawlist}}):{rules}}==true|{contains({list(13):{rawlist}}):{num}}==false):{list(13):{rawlist}} }}\n{=(num):{num}{all({list(14):{rawlist}}!=|{contains({list(14):{rawlist}}):{rules}}==true|{contains({list(14):{rawlist}}):{num}}==false):{list(14):{rawlist}} }}\n{=(num):{num}{all({list(15):{rawlist}}!=|{contains({list(15):{rawlist}}):{rules}}==true|{contains({list(15):{rawlist}}):{num}}==false):{list(15):{rawlist}} }}\n{=(num):{num}{all({list(16):{rawlist}}!=|{contains({list(16):{rawlist}}):{rules}}==true|{contains({list(16):{rawlist}}):{num}}==false):{list(16):{rawlist}} }}\n{=(num):{num}{all({list(17):{rawlist}}!=|{contains({list(17):{rawlist}}):{rules}}==true|{contains({list(17):{rawlist}}):{num}}==false):{list(17):{rawlist}} }}\n{=(num):{num}{all({list(18):{rawlist}}!=|{contains({list(18):{rawlist}}):{rules}}==true|{contains({list(18):{rawlist}}):{num}}==false):{list(18):{rawlist}} }}\n{=(num):{num}{all({list(19):{rawlist}}!=|{contains({list(19):{rawlist}}):{rules}}==true|{contains({list(19):{rawlist}}):{num}}==false):{list(19):{rawlist}} }}\n{=(num):{num}{all({list(20):{rawlist}}!=|{contains({list(20):{rawlist}}):{rules}}==true|{contains({list(20):{rawlist}}):{num}}==false):{list(20):{rawlist}} }}\n{=(num):{num}{all({list(21):{rawlist}}!=|{contains({list(21):{rawlist}}):{rules}}==true|{contains({list(21):{rawlist}}):{num}}==false):{list(21):{rawlist}} }}\n{=(num):{num}{all({list(22):{rawlist}}!=|{contains({list(22):{rawlist}}):{rules}}==true|{contains({list(22):{rawlist}}):{num}}==false):{list(22):{rawlist}} }}\n{=(num):{num}{all({list(23):{rawlist}}!=|{contains({list(23):{rawlist}}):{rules}}==true|{contains({list(23):{rawlist}}):{num}}==false):{list(23):{rawlist}} }}\n{=(num):{num}{all({list(24):{rawlist}}!=|{contains({list(24):{rawlist}}):{rules}}==true|{contains({list(24):{rawlist}}):{num}}==false):{list(24):{rawlist}}}}\n\n{=(comment):The following tests to see if args are empty, or if help or keyword are present, or if the input failed to generate a shortened list of rules, and if so, sets the rule numbers to the full list of rules}\n{=(largs):{lower:{args}}}\n{=(num):{any({largs(1)}==|{all({in(help):{largs}}==false|{in(keyword):{largs}}==false|{num}==):true|false}==true):{join(,):{rules}}|{join(,):{num}}}}\n\n{=(comment):Embed field generation for rule output, don't touch. ┐ = comma placeholder character}\n{=(ilf):,\"inline\":false}\n{=(cfields):{if({list(0):{num}}!=):{\"name\":\"{t{list(0):{num}}}\",\"value\":\"{rule{list(0):{num}}}\"{ilf}}}┐{if({list(1):{num}}!=):{\"name\":\"{t{list(1):{num}}}\",\"value\":\"{rule{list(1):{num}}}\"{ilf}}}┐{if({list(2):{num}}!=):{\"name\":\"{t{list(2):{num}}}\",\"value\":\"{rule{list(2):{num}}}\"{ilf}}}┐{if({list(3):{num}}!=):{\"name\":\"{t{list(3):{num}}}\",\"value\":\"{rule{list(3):{num}}}\"{ilf}}}┐{if({list(4):{num}}!=):{\"name\":\"{t{list(4):{num}}}\",\"value\":\"{rule{list(4):{num}}}\"{ilf}}}┐{if({list(5):{num}}!=):{\"name\":\"{t{list(5):{num}}}\",\"value\":\"{rule{list(5):{num}}}\"{ilf}}}┐{if({list(6):{num}}!=):{\"name\":\"{t{list(6):{num}}}\",\"value\":\"{rule{list(6):{num}}}\"{ilf}}}┐{if({list(7):{num}}!=):{\"name\":\"{t{list(7):{num}}}\",\"value\":\"{rule{list(7):{num}}}\"{ilf}}}┐{if({list(8):{num}}!=):{\"name\":\"{t{list(8):{num}}}\",\"value\":\"{rule{list(8):{num}}}\"{ilf}}}┐{if({list(9):{num}}!=):{\"name\":\"{t{list(9):{num}}}\",\"value\":\"{rule{list(9):{num}}}\"{ilf}}}┐{if({list(10):{num}}!=):{\"name\":\"{t{list(10):{num}}}\",\"value\":\"{rule{list(10):{num}}}\"{ilf}}}┐{if({list(11):{num}}!=):{\"name\":\"{t{list(11):{num}}}\",\"value\":\"{rule{list(11):{num}}}\"{ilf}}}┐{if({list(12):{num}}!=):{\"name\":\"{t{list(12):{num}}}\",\"value\":\"{rule{list(12):{num}}}\"{ilf}}}┐{if({list(13):{num}}!=):{\"name\":\"{t{list(13):{num}}}\",\"value\":\"{rule{list(13):{num}}}\"{ilf}}}┐{if({list(14):{num}}!=):{\"name\":\"{t{list(14):{num}}}\",\"value\":\"{rule{list(14):{num}}}\"{ilf}}}┐{if({list(15):{num}}!=):{\"name\":\"{t{list(15):{num}}}\",\"value\":\"{rule{list(15):{num}}}\"{ilf}}}┐{if({list(16):{num}}!=):{\"name\":\"{t{list(16):{num}}}\",\"value\":\"{rule{list(16):{num}}}\"{ilf}}}┐{if({list(17):{num}}!=):{\"name\":\"{t{list(17):{num}}}\",\"value\":\"{rule{list(17):{num}}}\"{ilf}}}┐{if({list(18):{num}}!=):{\"name\":\"{t{list(18):{num}}}\",\"value\":\"{rule{list(18):{num}}}\"{ilf}}}┐{if({list(19):{num}}!=):{\"name\":\"{t{list(19):{num}}}\",\"value\":\"{rule{list(19):{num}}}\"{ilf}}}┐{if({list(20):{num}}!=):{\"name\":\"{t{list(20):{num}}}\",\"value\":\"{rule{list(20):{num}}}\"{ilf}}}┐{if({list(21):{num}}!=):{\"name\":\"{t{list(21):{num}}}\",\"value\":\"{rule{list(21):{num}}}\"{ilf}}}┐{if({list(22):{num}}!=):{\"name\":\"{t{list(22):{num}}}\",\"value\":\"{rule{list(22):{num}}}\"{ilf}}}┐{if({list(23):{num}}!=):{\"name\":\"{t{list(23):{num}}}\",\"value\":\"{rule{list(23):{num}}}\"{ilf}}}┐{if({list(24):{num}}!=):{\"name\":\"{t{list(24):{num}}}\",\"value\":\"{rule{list(24):{num}}}\"{ilf}}}}\n\n{=(comment):different description holding variables}\n{=(instr):__Instructions__\nFollow the command with the number(s) of the rules you wish to output with spaces in between. Additional accepted formats are:\n#*x*-#*y* to indicate rules from #*x* to #*y* (limit 1x`-`)\n#+ to indicate rules from # to the end of the list of rules\n+# to indicate rules from 1 to # (limit 2x`+`)\nYou can also mix in keywords that have been set (don't mix keywords and symbols).\nExamples: `!rules +2 nsfw 4-6 8+` }\n\n{=(kw):__Keywords__\n{keyword01} {keyword02} {keyword03} {keyword04} {keyword05} {keyword06} {keyword07} {keyword08} {keyword09} {keyword10} {keyword11} {keyword12} {keyword13} {keyword14} {keyword15} {keyword16} {keyword17} {keyword18} {keyword19} {keyword20} {keyword21} {keyword22} {keyword23} {keyword24} {keyword25}}\n\n{=(comment):Embed fields}\n{=(footer):Type \\\"!rules help\\\" for instructions, and \\\"!rules keywords\\\" for the list of reference keywords.}\n{=(des):{if({in(help):{largs}}==true):{instr}|{if({in(keyword):{largs}}==true):{kw}|{if({ruleschannelid}!=):<#{ruleschannelid}>}}}}\n\n{=(comment):finalizes the json for the embed by replacing spaces with a filler character, replacing comma placeholder characters with spaces, joining the spaces with commas, and replacing the filler characters with spaces again. this ensures there are no commas preceeding JSON fields, nor trailing the last JSON field. also includes logic choosing whether to display the full rules list (if args or the input number list are empty AND help/keyword are not displayed) or the custom rules list}\n{=(json):\"title\":\"{embedtitle}\",\"description\":\"{des}\",\"fields\":[{replace(█, ):{join(,):{replace(┐, ):{replace( ,█):{cfields}}}}}],\"author\":{\"name\":\"{server}\",\"icon_url\":\"{server(icon)}\"},\"color\":3092790,\"footer\":{\"text\":\"{footer}\"}}\n\n{c:cembed {if({in(<#):{args}}==true):{args({index(<#):{replace(<#,. <# .):{args}}})}|{channel(id)}} {{json}}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T20:58:42.298Z"
}