harvest-a1
I am having trouble finding out how to make a block of code output a specific role ID in it's place if they have a role ID that is in a list; which is {wheatnum} this time. The reason i am doing it like this is so I can do a majority of copy/paste and editing values accordingly when i add a new crop.
Privateunrated
Content
36 lines--my scribbles start--
813552603639840808 #0
813552379022147634 #1
813552493862584321 #2
813552681288597514 #4
813552757017018448 #5
813552850977292289 #10
813552915507183638 #20
813552974693007361
813553036165251082
813553187696017481
those roles are wheat x1 to wheat x10
{=(wheatminus):
{if({in(813552603639840808):{user(roleids)}}==true):813552603639840808}
{if({in(813552379022147634):{user(roleids)}}==true):813552379022147634}
{if({in(813552493862584321):{user(roleids)}}==true):813552493862584321}
{if({in(813552681288597514):{user(roleids)}}==true):813552681288597514}
{if({in(813552757017018448):{user(roleids)}}==true):813552757017018448}
{if({in(813552850977292289):{user(roleids)}}==true):813552850977292289}
{if({in(813552915507183638):{user(roleids)}}==true):813552915507183638}
{if({in(REPLACE):{user(roleids)}}==true):REPLACE}
{if({in(REPLACE):{user(roleids)}}==true):REPLACE}
{if({in(REPLACE):{user(roleids)}}==true):REPLACE}
--my scribbles end--
{=(wheat2):if({in(813539412062896165):{user(roleids)}}==true):}
{c:role custom {user(id)} -{{wheat2}813539412062896165} -{{wheat2}{WHEATNUM THEY HAVE BUT IF 10 NOTHING}} +{{wheat2}{WHEATNUM THEY HAVE MOVED UP 2 IN THE WHEATNUM LIST WITH 10 TWICE MORE AT THE END}}}Embed
1 line{"color": 5198940, "description": "{user} gained 2 wheat!"}Raw JSON
{
"id": 627873,
"created_at": "2021-02-22T23:16:06.000Z",
"tag_name": "harvest-a1",
"nsfw": false,
"owner_id": "490887549393567745",
"uses": 6,
"description": "I am having trouble finding out how to make a block of code output a specific role ID in it's place if they have a role ID that is in a list; which is {wheatnum} this time.\n\nThe reason i am doing it like this is so I can do a majority of copy/paste and editing values accordingly when i add a new crop.",
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "810953938614091787",
"sharer": "490887549393567745",
"content": "--my scribbles start--\n\n813552603639840808 #0\n813552379022147634 #1\n813552493862584321 #2\n813552681288597514 #4\n813552757017018448 #5\n813552850977292289 #10\n813552915507183638 #20\n813552974693007361\n813553036165251082\n813553187696017481\n\nthose roles are wheat x1 to wheat x10\n\n{=(wheatminus):\n{if({in(813552603639840808):{user(roleids)}}==true):813552603639840808}\n{if({in(813552379022147634):{user(roleids)}}==true):813552379022147634}\n{if({in(813552493862584321):{user(roleids)}}==true):813552493862584321}\n{if({in(813552681288597514):{user(roleids)}}==true):813552681288597514}\n{if({in(813552757017018448):{user(roleids)}}==true):813552757017018448}\n{if({in(813552850977292289):{user(roleids)}}==true):813552850977292289}\n{if({in(813552915507183638):{user(roleids)}}==true):813552915507183638}\n{if({in(REPLACE):{user(roleids)}}==true):REPLACE}\n\n\n{if({in(REPLACE):{user(roleids)}}==true):REPLACE}\n\n{if({in(REPLACE):{user(roleids)}}==true):REPLACE}\n\n--my scribbles end--\n\n\n{=(wheat2):if({in(813539412062896165):{user(roleids)}}==true):}\n\n{c:role custom {user(id)} -{{wheat2}813539412062896165} -{{wheat2}{WHEATNUM THEY HAVE BUT IF 10 NOTHING}} +{{wheat2}{WHEATNUM THEY HAVE MOVED UP 2 IN THE WHEATNUM LIST WITH 10 TWICE MORE AT THE END}}}",
"embed": "{\"color\": 5198940, \"description\": \"{user} gained 2 wheat!\"}",
"last_fetched": "2026-10-21T00:25:01.571Z"
}