percent
All Instructions are inside!
Sharedunrated
Content
47 lines{=(COMMENT):This is a comment it will be throughout the code explaining what the code under it does and how you can edit it, for example under this is the del command which deletes the invocation}
{del}
{=(COMMENT):Under here is first the prefix, the tag name, and how it takes the arguments and uses the data, change the tag prefix and tag name to customize the error output Don't change the hex colors as thats how it generates random colors}
{=(tag.prefix):?}
{=(tag.name):percent}
{=(tag.separator):-}
{=(arg.percent):{replace( ,):{lower:{replace(%,):{args(1):{tag.separator}}}}}}
{=(arg.hex):{replace( ,):{lower:{replace(#,):{args(2):{tag.separator}}}}}}
{=(arg.position):{replace( ,):{lower:{args(3):{tag.separator}}}}}
{=(hex.codes):0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}
{=(hex.color.random):{#:{hex.codes}}{#:{hex.codes}}{#:{hex.codes}}{#:{hex.codes}}{#:{hex.codes}}{#:{hex.codes}}}
{=(COMMENT):Basically if the first argument up to your first separator is random or rand it will change the output to a random percent, if not it will stay the same}
{=(arg.percent):{if({arg.percent}==random):{range:1-100}|{arg.percent}}}
{=(arg.percent):{if({arg.percent}==rand):{range:1-100}|{arg.percent}}}
{=(COMMENT):Preset Color Arguments, if you would like to add one copy and paste a line and just change the color name and the hex which should be to the right DON'T INCLUDE THE #}
{=(arg.hex):{if({arg.hex}==random):{hex.color.random}|{arg.hex}}}
{=(arg.hex):{if({arg.hex}==rand):{hex.color.random}|{arg.hex}}}
{=(arg.hex):{if({arg.hex}==red):ff0000|{arg.hex}}}
{=(arg.hex):{if({arg.hex}==orange):ffa500|{arg.hex}}}
{=(arg.hex):{if({arg.hex}==yellow):ffff00|{arg.hex}}}
{=(arg.hex):{if({arg.hex}==green):00ff00|{arg.hex}}}
{=(arg.hex):{if({arg.hex}==blue):0000ff|{arg.hex}}}
{=(arg.hex):{if({arg.hex}==purple):800080|{arg.hex}}}
{=(arg.hex):{if({arg.hex}==white):ffffff|{arg.hex}}}
{=(COMMENT):Same thing as the above 2 randoms, generates a random left or right position}
{=(arg.position):{if({arg.position}==random):{rand:right,left}|{arg.position}}}
{=(arg.position):{if({arg.position}==rand):{rand:right,left}|{arg.position}}}
{=(COMMENT):If the third argument given isn't right or left auto turn it into left.}
{=(arg.position):{if({arg.position}==right):{arg.position}|{if({arg.position}==left):{arg.position}|left}}}
{=(COMMENT):Hey is the first argument not a number? This is the title of the error message and the description that it gives}
{=(embed.title):{if({m:sgn({arg.percent})}!=1):Error|}}
{=(embed.description):{if({m:sgn({arg.percent})}!=1):You need to include a positive number for the percent bar.
You put: `{if({args}==):Nothing|{arg.percent}}`
Make sure to use the separator: `{tag.separator}`
*Example Command:*
`{tag.prefix}{tag.name} {range:1-100}-{hex.color.random}-{random:left,right}`|}}
{embed(color):{if({m:sgn({arg.percent})}!=1):#ff0000|{user(color)}}}
{=(COMMENT):Finally everythings in place, is the first number correct or not? Output the right image based on it!}
{=(final.url):{if({m:sgn({arg.percent})}==1):http://www.yarntomato.com/percentbarmaker/button.php?barPosition={arg.percent}&{arg.position}Fill={arg.hex}|http://www.yarntomato.com/percentbarmaker/button.php?barPosition=100&leftFill=ff0000}}Embed
1 line{"color": 5198940, "image": {"url": "{final.url}"}, "title": "{embed.title}", "description": "{embed.description}"}Raw JSON
{
"id": 432232,
"created_at": "2020-11-16T21:56:58.000Z",
"tag_name": "percent",
"nsfw": false,
"owner_id": "360061101477724170",
"uses": 41,
"description": "All Instructions are inside!",
"restricted": false,
"shared": true,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "749817350660030555",
"sharer": "360061101477724170",
"content": "{=(COMMENT):This is a comment it will be throughout the code explaining what the code under it does and how you can edit it, for example under this is the del command which deletes the invocation}\n{del} \n\n{=(COMMENT):Under here is first the prefix, the tag name, and how it takes the arguments and uses the data, change the tag prefix and tag name to customize the error output Don't change the hex colors as thats how it generates random colors}\n{=(tag.prefix):?}\n{=(tag.name):percent}\n{=(tag.separator):-}\n{=(arg.percent):{replace( ,):{lower:{replace(%,):{args(1):{tag.separator}}}}}}\n{=(arg.hex):{replace( ,):{lower:{replace(#,):{args(2):{tag.separator}}}}}}\n{=(arg.position):{replace( ,):{lower:{args(3):{tag.separator}}}}}\n{=(hex.codes):0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}\n{=(hex.color.random):{#:{hex.codes}}{#:{hex.codes}}{#:{hex.codes}}{#:{hex.codes}}{#:{hex.codes}}{#:{hex.codes}}}\n\n{=(COMMENT):Basically if the first argument up to your first separator is random or rand it will change the output to a random percent, if not it will stay the same}\n{=(arg.percent):{if({arg.percent}==random):{range:1-100}|{arg.percent}}}\n{=(arg.percent):{if({arg.percent}==rand):{range:1-100}|{arg.percent}}}\n\n{=(COMMENT):Preset Color Arguments, if you would like to add one copy and paste a line and just change the color name and the hex which should be to the right DON'T INCLUDE THE #}\n{=(arg.hex):{if({arg.hex}==random):{hex.color.random}|{arg.hex}}}\n{=(arg.hex):{if({arg.hex}==rand):{hex.color.random}|{arg.hex}}}\n{=(arg.hex):{if({arg.hex}==red):ff0000|{arg.hex}}}\n{=(arg.hex):{if({arg.hex}==orange):ffa500|{arg.hex}}}\n{=(arg.hex):{if({arg.hex}==yellow):ffff00|{arg.hex}}}\n{=(arg.hex):{if({arg.hex}==green):00ff00|{arg.hex}}}\n{=(arg.hex):{if({arg.hex}==blue):0000ff|{arg.hex}}}\n{=(arg.hex):{if({arg.hex}==purple):800080|{arg.hex}}}\n{=(arg.hex):{if({arg.hex}==white):ffffff|{arg.hex}}}\n\n{=(COMMENT):Same thing as the above 2 randoms, generates a random left or right position}\n{=(arg.position):{if({arg.position}==random):{rand:right,left}|{arg.position}}}\n{=(arg.position):{if({arg.position}==rand):{rand:right,left}|{arg.position}}}\n\n{=(COMMENT):If the third argument given isn't right or left auto turn it into left.}\n{=(arg.position):{if({arg.position}==right):{arg.position}|{if({arg.position}==left):{arg.position}|left}}}\n\n{=(COMMENT):Hey is the first argument not a number? This is the title of the error message and the description that it gives}\n{=(embed.title):{if({m:sgn({arg.percent})}!=1):Error|}}\n{=(embed.description):{if({m:sgn({arg.percent})}!=1):You need to include a positive number for the percent bar.\nYou put: `{if({args}==):Nothing|{arg.percent}}`\nMake sure to use the separator: `{tag.separator}`\n\n*Example Command:*\n`{tag.prefix}{tag.name} {range:1-100}-{hex.color.random}-{random:left,right}`|}}\n{embed(color):{if({m:sgn({arg.percent})}!=1):#ff0000|{user(color)}}}\n\n{=(COMMENT):Finally everythings in place, is the first number correct or not? Output the right image based on it!}\n{=(final.url):{if({m:sgn({arg.percent})}==1):http://www.yarntomato.com/percentbarmaker/button.php?barPosition={arg.percent}&{arg.position}Fill={arg.hex}|http://www.yarntomato.com/percentbarmaker/button.php?barPosition=100&leftFill=ff0000}}",
"embed": "{\"color\": 5198940, \"image\": {\"url\": \"{final.url}\"}, \"title\": \"{embed.title}\", \"description\": \"{embed.description}\"}",
"last_fetched": "2026-10-20T23:09:49.112Z"
}