Can someone help me with a height command where nightbot guesses ur height
Something that will go like if user height is not above 4’10 then she/he (text) or else she/he is (text)
I started with this but dont know what to do
$(eval a=[4'10
, 5'0
, 5'1
, 5'2
, 5'3
, 5'4
, 5'5
, 5'6
, 5'7
, 5'8
, 5'9
, 5'10
, 5'11
, 6'1
, 6'2
, 6'3
, 6'4
, 6'5
, 6'6
, 6'7
, 6'8
, 6'9
, 6'10
, 6'11
, 7'0
];a[Math.floor(Math.random()*a.lenght)])
Emily
2
Hey @Cyrensy!
I’m not quite sure I understand what you want, but this is what I got:
!addcom !height $(eval a=[`4'10`,`4'11`,`5'0`,`5'1`,`5'2`,`5'3`,`5'4`,`5'5`,`5'6`,`5'7`,`5'8`,`5'9`,`5'10`,`5'11`,`6'1`,`6'2`,`6'3`,`6'4`,`6'5`,`6'6`,`6'7`,`6'8`,`6'9`,`6'10`,`6'11`,`7'0`];`$(user) is ${a[Math.floor(Math.random()*a.length)]}.`)
Another way to do it would be like this:
!addcom !height $(eval a=Math.floor(Math.random()*4+4);if(a==7){b=0;}else{if(a==4){x=2;y=10;}else{x=12;y=0;}b=Math.floor(Math.random()*x+y);}`$(user) is ${a}\'${b}.`)
system
Closed
3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.