BDFD GUESS THE NUMBER GAME USE BDSCRIPT 2 Variables: numbers value 0 First Command (prefix)guess $nomention $nomention $reply $allowUserMentions[] $embedSuppressErrors[;;00feff;;;] $cooldown[10s;Please wait %time% to use this command again] $setUserVar[numbers;$random[1;11]] $addButton[no;buttonguess1-$authorID;1;secondary;no;] $addButton[no;buttonguess2-$authorID;2;secondary;no;] $addButton[no;buttonguess3-$authorID;3;secondary;no;] $addButton[no;buttonguess4-$authorID;4;secondary;no;] $addButton[no;buttonguess5-$authorID;5;secondary;no;] $addButton[yes;buttonguess6-$authorID;6;secondary;no;] $addButton[no;buttonguess7-$authorID;7;secondary;no;] $addButton[no;buttonguess8-$authorID;8;secondary;no;] $addButton[no;buttonguess9-$authorID;9;secondary;no;] $addButton[no;buttonguess10-$authorID;10;secondary;no;] $description[$username#$discriminator[] Guess the number between 1-10] $color[00feff] _______________________________________________________ 2nd Command $onInteraction BDScript 2 $nomention $nomention $textSplit[$customID;-] $if[$splitText[1]==buttonguess1] $if[$splitText[2]==$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;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $setUserVar[numbers;$random[1;11]] $description[You picked the right number] $color[00feff] $else $editButton[buttonguess1-$authorID;❌;danger;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $description[You picked the wrong number, the correct number was `$getUserVar[numbers]`] $color[00feff] $endif $else $ephemeral $removeButtons Only $username[$splitText[2]]#$discriminator[$splitText[2]] can use this button as they have used the command! $endif $endif $textSplit[$customID;-] $if[$splitText[1]==buttonguess2] $if[$splitText[2]==$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;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $setUserVar[numbers;$random[1;11]] $description[You picked the right number] $color[00feff] $else $editButton[buttonguess2-$authorID;❌;danger;yes;] $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $description[You picked the wrong number, the correct number was `$getUserVar[numbers]`] $color[00feff] $endif $else $ephemeral $removeButtons Only $username[$splitText[2]]#$discriminator[$splitText[2]] can use this button as they have used the command! $endif $endif $textSplit[$customID;-] $if[$splitText[1]==buttonguess3] $if[$splitText[2]==$authorID] $if[$getUserVar[numbers]==3] $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;✅;success;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $setUserVar[numbers;$random[1;11]] $description[You picked the right number] $color[00feff] $else $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;❌;danger;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $description[You picked the wrong number, the correct number was `$getUserVar[numbers]`] $color[00feff] $endif $else $ephemeral $removeButtons Only $username[$splitText[2]]#$discriminator[$splitText[2]] can use this button as they have used the command! $endif $endif $textSplit[$customID;-] $if[$splitText[1]==buttonguess4] $if[$splitText[2]==$authorID] $if[$getUserVar[numbers]==4] $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;✅;success;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $setUserVar[numbers;$random[1;10]] $description[You picked the right number] $color[00feff] $else $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;❌;danger;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $description[You picked the wrong number, the correct number was `$getUserVar[numbers]`] $color[00feff] $endif $else $ephemeral $removeButtons Only $username[$splitText[2]]#$discriminator[$splitText[2]] can use this button as they have used the command! $endif $endif $textSplit[$customID;-] $if[$splitText[1]==buttonguess5] $if[$splitText[2]==$authorID] $if[$getUserVar[numbers]==5] $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;✅;success;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $setUserVar[numbers;$random[1;11]] $description[You picked the right number] $color[00feff] $else $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;]$editButton[buttonguess5-$authorID;❌;danger;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $description[You picked the wrong number, the correct number was `$getUserVar[numbers]`] $color[00feff] $endif $else $ephemeral $removeButtons Only $username[$splitText[2]]#$discriminator[$splitText[2]] can use this button as they have used the command! $endif $endif $nomention $if[$splitText[1]==buttonguess6] $if[$splitText[2]==$authorID] $if[$getUserVar[numbers]==6] $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;✅;success;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $setUserVar[numbers;$random[1;11]] $description[You picked the right number] $color[00feff] $else $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;❌;danger;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $description[You picked the wrong number, the correct number was `$getUserVar[numbers]`] $color[00feff] $endif $else $ephemeral $removeButtons Only $username[$splitText[2]]#$discriminator[$splitText[2]] can use this button as they have used the command! $endif $endif $endif $endif $if[$splitText[1]==buttonguess7] $if[$splitText[2]==$authorID] $if[$getUserVar[numbers]==7] $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;success;yes;] $editButton[buttonguess7-$authorID;✅;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $setUserVar[numbers;$random[1;11]] $description[You picked the right number] $color[00feff] $else $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;❌;danger;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $description[You picked the wrong number, the correct number was `$getUserVar[numbers]`] $color[00feff] $endif $else $ephemeral $removeButtons Only $username[$splitText[2]]#$discriminator[$splitText[2]] can use this button as they have used the command! $endif $endif $endif $endif $if[$splitText[1]==buttonguess8] $if[$splitText[2]==$authorID] $if[$getUserVar[numbers]==8] $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;✅;success;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $setUserVar[numbers;$random[1;11]] $description[You picked the right number] $color[00feff] $else $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;danger;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $description[You picked the wrong number, the correct number was `$getUserVar[numbers]`] $color[00feff] $endif $else $ephemeral $removeButtons Only $username[$splitText[2]]#$discriminator[$splitText[2]] can use this button as they have used the command! $endif $endif $endif $endif $if[$splitText[1]==buttonguess9] $if[$splitText[2]==$authorID] $if[$getUserVar[numbers]==9] $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $setUserVar[numbers;$random[1;11]] $description[You picked the right number] $color[00feff] $else $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;❌;danger;yes;] $editButton[buttonguess10-$authorID;10;secondary;yes;] $description[You picked the wrong number, the correct number was `$getUserVar[numbers]`] $color[00feff] $endif $else $ephemeral $removeButtons Only $username[$splitText[2]]#$discriminator[$splitText[2]] can use this button as they have used the command! $endif $endif $endif $endif $if[$splitText[1]==buttonguess10] $if[$splitText[2]==$authorID] $if[$getUserVar[numbers]==10] $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6;secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;✅;success;yes;] $setUserVar[numbers;$random[1;11]] $description[You picked the right number] $color[00feff] $else $editButton[buttonguess1-$authorID;1;secondary;yes;] $editButton[buttonguess2-$authorID;2;secondary;yes;] $editButton[buttonguess3-$authorID;3;secondary;yes;] $editButton[buttonguess4-$authorID;4;secondary;yes;] $editButton[buttonguess5-$authorID;5;secondary;yes;] $editButton[buttonguess6-$authorID;6; secondary;yes;] $editButton[buttonguess7-$authorID;7;secondary;yes;] $editButton[buttonguess8-$authorID;8;secondary;yes;] $editButton[buttonguess9-$authorID;9;secondary;yes;] $editButton[buttonguess10-$authorID;❌;danger;yes;] $description[You picked the wrong number, the correct number was `$getUserVar[numbers]`] $color[00feff] $endif $else $ephemeral $removeButtons Only $username[$splitText[2]]#$discriminator[$splitText[2]] can use this button as they have used the command! $endif $endif $endif $endif $endif $suppressErrors