Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variable :
- numbers = 0
- item 1
- Trigger : !number guessing
- $note
- $setUserVar[numbers;$random[1;5]]
- $addButton[no;buttonguess1-$authorID;1;primary;no;]
- $addButton[no;buttonguess2-$authorID;2;primary;no;]
- $addButton[no;buttonguess3-$authorID;3;primary;no;]
- $addButton[no;buttonguess4-$authorID;4;primary;no;]
- $title[:1234: __ERATE THE NUMBER__]
- $description[Select the correct number below to win. You only have a guess]
- $thumbnail[$authorAvatar]
- $color[447f4]
- $suppressErrors
- Item 2:
- Trigger : $onInteraction
- $note
- $if[$customID==buttonguess1-$authorID]
- $if[$getUserVar[numbers]==1]
- $editButton[buttonguess1-$authorID;✅;success;yes;]
- $editButton[buttonguess2-$authorID;2;secondary;yes;]
- $editButton[buttonguess3-$authorID;3;secondary;yes;]
- $editButton[buttonguess4-$authorID;4;secondary;yes;]
- $setUserVar[numbers;$random[1;5]]
- $title[:1234: __Correct Number__]
- $description[✅┃You chose the right number]
- $thumbnail[$authorAvatar]
- $color[447f4]
- $else
- $editButton[buttonguess1-$authorID;❌;danger;yes;]
- $editButton[buttonguess2-$authorID;2;secondary;yes;]
- $editButton[buttonguess3-$authorID;3;secondary;yes;]
- $editButton[buttonguess4-$authorID;4;secondary;yes;]
- $title[:1234: __Wrong number__]
- $description[❌ ┃ You dialed the wrong number while `$getUserVar[numbers]`]
- $thumbnail[$authorAvatar]
- $color[447f4]
- $endif
- $endif
- $if[$customID==buttonguess2-$authorID]
- $if[$getUserVar[numbers]==2]
- $editButton[buttonguess2-$authorID;✅;success;yes;]
- $editButton[buttonguess1-$authorID;1;secondary;yes;]
- $editButton[buttonguess3-$authorID;3;secondary;yes;]
- $editButton[buttonguess4-$authorID;4;secondary;yes;]
- $setUserVar[numbers;$random[1;5]]
- $title[:1234: __Right__]
- $description[✅┃You chose the right number]
- $thumbnail[$authorAvatar]
- $color[447f4]
- $else
- $editButton[buttonguess2-$authorID;❌;danger;yes;]
- $editButton[buttonguess1-$authorID;1;secondary;yes;]
- $editButton[buttonguess3-$authorID;3;secondary;yes;]
- $editButton[buttonguess4-$authorID;4;secondary;yes;]
- $title[:1234: __Wrong number___]
- $description[❌┃You dialed the wrong number, the correct number was `$getUserVar[numbers]`]
- $thumbnail[$authorAvatar]
- $color[447f4]
- $endif
- $endif
- $if[$customID==buttonguess3-$authorID]
- $if[$getUserVar[numbers]==3]
- $editButton[buttonguess3-$authorID;✅;success;yes;]
- $editButton[buttonguess2-$authorID;2;secondary;yes;]
- $editButton[buttonguess1-$authorID;1;secondary;yes;]
- $editButton[buttonguess4-$authorID;4;secondary;yes;]
- $setUserVar[numbers;$random[1;5]]
- $title[:1234: __Right__]
- $description[✅┃You chose the right number]
- $thumbnail[$authorAvatar]
- $color[447f4]
- $else
- $editButton[buttonguess3-$authorID;❌;danger;yes;]
- $editButton[buttonguess2-$authorID;2;secondary;yes;]
- $editButton[buttonguess1-$authorID;1;secondary;yes;]
- $editButton[buttonguess4-$authorID;4;secondary;yes;]
- $title[:1234: __Wrong number__]
- $description[You dialed the wrong number, the correct number was `$getUserVar[numbers]`]
- $thumbnail[$authorAvatar]
- $color[447f4]
- $endif
- $endif
- $if[$customID==buttonguess4-$authorID]
- $if[$getUserVar[numbers]==4]
- $editButton[buttonguess4-$authorID;✅;success;yes;]
- $editButton[buttonguess2-$authorID;2;secondary;yes;]
- $editButton[buttonguess3-$authorID;3;secondary;yes;]
- $editButton[buttonguess1-$authorID;1;secondary;yes;]
- $setUserVar[numbers;$random[1;5]]
- $title[:1234: __Right__]
- $description[✅┃You chose the right number]
- $thumbnail[$authorAvatar]
- $color[447f4]
- $else
- $editButton[buttonguess4-$authorID;❌;danger;yes;]
- $editButton[buttonguess2-$authorID;2;secondary;yes;]
- $editButton[buttonguess3-$authorID;3;secondary;yes;]
- $editButton[buttonguess1-$authorID;1;secondary;yes;]
- $title[:1234: __Wrong number__]
- $description[❌┃You dialed the wrong number, the correct number was `$getUserVar[numbers]`]
- $thumbnail[$authorAvatar]
- $color[447f4]
- $endif
- $endif
- $suppressErrors
Advertisement
Add Comment
Please, Sign In to add comment