Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //advanced guess the number command with buttons//
- //join to me discord: https://discord.gg/MEZHmVPPag//
- ======================================
- ======================================
- **VARS NEDEED**
- numbers = 0
- ======================================
- ======================================
- **COMMANDS**
- command 1:
- trigger: !numguess
- need: BDScript
- code: $nomention
- $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: __GUESS THE NUMBER__]
- $description[Pick the correct number below to win, you only have one guess]
- $thumbnail[$authorAvatar]
- $color[447f4]
- $suppressErrors
- ======================================
- ======================================
- command 2:
- trigger: $onInteraction
- need: BDScript
- code: $nomention
- $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 picked 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: __INCORRECT NUMBER__]
- $description[You picked the wrong number, the correct number was `$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: __CORRECT NUMBER__]
- $description[You picked 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: __INCORRECT NUMBER___]
- $description[You picked 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: __CORRECT NUMBER__]
- $description[You picked 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: __INCORRECT NUMBER__]
- $description[You picked 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: __CORRECT NUMBER__]
- $description[You picked 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: __INCORRECT NUMBER__]
- $description[You picked 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
Advertisement