cs-hp-max

Privateunrated

Content

57 lines
{=(error.1):{if({math:trunc({1}/1)}!={1}):true|false}}
{=(error.1.1):{if({1}=={args}):true|false}}
{=(error.2):{if({math:trunc({2}/1)}!={2}):true|false}}
{=(error.2.1):{if({2}=={args}):true|false}}
{=(error.3):{if({math:trunc({3}/1)}!={3}):true|false}}
{=(error.3.1):{if({3}=={args}):true|false}}
{=(error.4):{and({4}!={args}|{4}!=c|{4}!=hp):true|false}}

{=(error.all):{error.1} {error.1.1} {error.2} {error.2.1} {error.3} {error.3.1} {error.4}}
{=(error.message):{if({in(true):{error.all}}==true):true|false}}

{=(tickets):{if({error.1}==false):{1}|1}}
{=(points):{if({error.2}==false):{2}|1}}
{=(goal):{if({error.3}==false):{3}|1}}
{=(points):{2}}
{=(goal):{3}}
{=(point.type):{if({args(4)}!={args}):{4}|}}

{=(spare.tickets):{math:trunc({tickets}%20)}}

{=(point.type.word):Cleansweep points}
{=(point.type.word):{if({point.type}==c):Crests|{point.type.word}}}
{=(point.type.word):{if({point.type}==hp):House points|{point.type.word}}}

{=(points.needed):{math:trunc({goal}-{points})}}
{=(sweeps):{math:trunc({tickets}/20)}}

{=(streak.max):195}
{=(streak.min):195}
{=(streak.max):{if({point.type}==hp):28|{streak.max}}}
{=(streak.min):{if({point.type}==hp):21|{streak.min}}}
{=(streak.max):{if({point.type}==c):175|{streak.max}}}
{=(streak.min):{if({point.type}==c):140|{streak.min}}}

{=(points.possible.max):{math:trunc({sweeps}*{streak.max})}}
{=(points.possible.min):{math:trunc({sweeps}*{streak.min})}}

{=(error.not.enough):{if({points.possible.max}<{points.needed}):true|false}}
{=(error.difficult):{if({points.possible.min}<{points.needed}):true|false}}
{=(points.left.max):{math:trunc({points.needed}-{points.possible.min})}}
{=(points.left.min):{math:trunc({points.needed}-{points.possible.max})}}

{=(sweeps.needed.min):{math:trunc({points.left.min}/{streak.max})}}
{=(sweeps.needed.min):{if({math:{points.left.min}%{streak.max}}!=0):{math:trunc({sweeps.needed.min}+1)}|{math:trunc({sweeps.needed.min})}}}

{=(sweeps.needed.max):{math:trunc({points.left.max}/{streak.min})}}
{=(sweeps.needed.max):{if({math:{points.left.max}%{streak.min}}!=0):{math:trunc({sweeps.needed.max}+1)}|{math:trunc({sweeps.needed.max})}}}

{=(total.tix.max):{math:trunc({sweeps.needed.max}*20)}}
{=(total.tix.min):{math:trunc({sweeps.needed.min}*20)}}
{=(tix.needed.max):{math:trunc({total.tix.max}-{spare.tickets})}}
{=(tix.needed.min):{math:trunc({total.tix.min}-{spare.tickets})}}

{=(tix):{if({tix.needed.max}=={tix.needed.min}):**{tix.needed.max}**|**{tix.needed.min}-{tix.needed.max}**}}
{=(poinx):{if({points.left.max}=={points.left.min}):**{points.left.max}**|**{points.left.min}-{points.left.max}**}}

{=(s.s):{if({sweeps}>1):s|}}

Embed

1 line
{"color": 8311585, "footer": {"text": "$cs-math 1 2 3 type"}, "description": "{if({error.message}==true):Your command does not follow the right syntax. Please follow this syntax instead:\n```$cs-math #tickets #points #goal (type)```\nWhere\n**#tickets** = how many tickets you have\n**#points** = how many Cleansweep points/House points/Crests you have already\n**#goal** = the point/hp/crest amount of the target\n**(type)** = what type your goal is. Use `hp` for House points or `c` for Crests. Leave blank for Cleansweep points.\n\nFor example:\n```$cs-hp-max 55 780 1200 c```\n\n|{if({error.not.enough}==true):Starting at **{points}** {point.type.word}, you do not have enough tickets to reach your goal of **{goal}** {point.type.word}. You need {tix} more tickets to get **{poinx}** more {point.type.word} and reach that goal. See below for the highest {point.type.word} value you can reach.\n\n|Starting at **{points}** {point.type.word}, you have enough tickets to reach your goal of **{goal}** {point.type.word}{if({error.difficult}==true):, but it might be difficult as with only **{tickets}** tickets, you'll have to get some perfect matches}.\n\n}You can play **{sweeps}** streak{s.s}.\n\nTotal Cleansweep Points: **{math:trunc({sweeps}*195)}**\nTotal House Pride Points: **{math:trunc({sweeps}*21)}-{math:trunc({sweeps}*28)}**\nTotal Crests: **{math:trunc({sweeps}*140)}-{math:trunc({sweeps}*175)}**}"}
Raw JSON
{
  "id": 912745,
  "created_at": "2021-06-25T07:50:34.000Z",
  "tag_name": "cs-hp-max",
  "nsfw": false,
  "owner_id": "463595869053386761",
  "uses": 458,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "784915892358086668",
  "sharer": "463595869053386761",
  "content": "{=(error.1):{if({math:trunc({1}/1)}!={1}):true|false}}\n{=(error.1.1):{if({1}=={args}):true|false}}\n{=(error.2):{if({math:trunc({2}/1)}!={2}):true|false}}\n{=(error.2.1):{if({2}=={args}):true|false}}\n{=(error.3):{if({math:trunc({3}/1)}!={3}):true|false}}\n{=(error.3.1):{if({3}=={args}):true|false}}\n{=(error.4):{and({4}!={args}|{4}!=c|{4}!=hp):true|false}}\n\n{=(error.all):{error.1} {error.1.1} {error.2} {error.2.1} {error.3} {error.3.1} {error.4}}\n{=(error.message):{if({in(true):{error.all}}==true):true|false}}\n\n{=(tickets):{if({error.1}==false):{1}|1}}\n{=(points):{if({error.2}==false):{2}|1}}\n{=(goal):{if({error.3}==false):{3}|1}}\n{=(points):{2}}\n{=(goal):{3}}\n{=(point.type):{if({args(4)}!={args}):{4}|}}\n\n{=(spare.tickets):{math:trunc({tickets}%20)}}\n\n{=(point.type.word):Cleansweep points}\n{=(point.type.word):{if({point.type}==c):Crests|{point.type.word}}}\n{=(point.type.word):{if({point.type}==hp):House points|{point.type.word}}}\n\n{=(points.needed):{math:trunc({goal}-{points})}}\n{=(sweeps):{math:trunc({tickets}/20)}}\n\n{=(streak.max):195}\n{=(streak.min):195}\n{=(streak.max):{if({point.type}==hp):28|{streak.max}}}\n{=(streak.min):{if({point.type}==hp):21|{streak.min}}}\n{=(streak.max):{if({point.type}==c):175|{streak.max}}}\n{=(streak.min):{if({point.type}==c):140|{streak.min}}}\n\n{=(points.possible.max):{math:trunc({sweeps}*{streak.max})}}\n{=(points.possible.min):{math:trunc({sweeps}*{streak.min})}}\n\n{=(error.not.enough):{if({points.possible.max}<{points.needed}):true|false}}\n{=(error.difficult):{if({points.possible.min}<{points.needed}):true|false}}\n{=(points.left.max):{math:trunc({points.needed}-{points.possible.min})}}\n{=(points.left.min):{math:trunc({points.needed}-{points.possible.max})}}\n\n{=(sweeps.needed.min):{math:trunc({points.left.min}/{streak.max})}}\n{=(sweeps.needed.min):{if({math:{points.left.min}%{streak.max}}!=0):{math:trunc({sweeps.needed.min}+1)}|{math:trunc({sweeps.needed.min})}}}\n\n{=(sweeps.needed.max):{math:trunc({points.left.max}/{streak.min})}}\n{=(sweeps.needed.max):{if({math:{points.left.max}%{streak.min}}!=0):{math:trunc({sweeps.needed.max}+1)}|{math:trunc({sweeps.needed.max})}}}\n\n{=(total.tix.max):{math:trunc({sweeps.needed.max}*20)}}\n{=(total.tix.min):{math:trunc({sweeps.needed.min}*20)}}\n{=(tix.needed.max):{math:trunc({total.tix.max}-{spare.tickets})}}\n{=(tix.needed.min):{math:trunc({total.tix.min}-{spare.tickets})}}\n\n{=(tix):{if({tix.needed.max}=={tix.needed.min}):**{tix.needed.max}**|**{tix.needed.min}-{tix.needed.max}**}}\n{=(poinx):{if({points.left.max}=={points.left.min}):**{points.left.max}**|**{points.left.min}-{points.left.max}**}}\n\n{=(s.s):{if({sweeps}>1):s|}}",
  "embed": "{\"color\": 8311585, \"footer\": {\"text\": \"$cs-math 1 2 3 type\"}, \"description\": \"{if({error.message}==true):Your command does not follow the right syntax. Please follow this syntax instead:\\n```$cs-math #tickets #points #goal (type)```\\nWhere\\n**#tickets** = how many tickets you have\\n**#points** = how many Cleansweep points/House points/Crests you have already\\n**#goal** = the point/hp/crest amount of the target\\n**(type)** = what type your goal is. Use `hp` for House points or `c` for Crests. Leave blank for Cleansweep points.\\n\\nFor example:\\n```$cs-hp-max 55 780 1200 c```\\n\\n|{if({error.not.enough}==true):Starting at **{points}** {point.type.word}, you do not have enough tickets to reach your goal of **{goal}** {point.type.word}. You need {tix} more tickets to get **{poinx}** more {point.type.word} and reach that goal. See below for the highest {point.type.word} value you can reach.\\n\\n|Starting at **{points}** {point.type.word}, you have enough tickets to reach your goal of **{goal}** {point.type.word}{if({error.difficult}==true):, but it might be difficult as with only **{tickets}** tickets, you'll have to get some perfect matches}.\\n\\n}You can play **{sweeps}** streak{s.s}.\\n\\nTotal Cleansweep Points: **{math:trunc({sweeps}*195)}**\\nTotal House Pride Points: **{math:trunc({sweeps}*21)}-{math:trunc({sweeps}*28)}**\\nTotal Crests: **{math:trunc({sweeps}*140)}-{math:trunc({sweeps}*175)}**}\"}",
  "last_fetched": "2026-10-21T01:56:38.906Z"
}