Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - ahamshep

Pages: [1]
1
General Discussion / Re: Introductions
« on: May 11, 2021, 07:51:13 pm »
Hello all.

I'm ahamshep.

I'm from Canada although I now live in Mexico.

I was looking for something to experiment with my very limited programing knowledge when I happened upon Seuntjie's dice bot.  I've been having a lot of fun with it and am greatful to Seuntjie for creating it.

I'm a Linux user, so I have been running the bot using wine.  For the most part the bot runs fairly well in Linux this way.

I've timidly looked at some of the C# code of the dicebot itself, but I'm not there yet.

I've been curious to find out which sites everyone feels are good, and trustworthy.

have fun everyone.

2
Programmer Mode / Re: High Low Array
« on: May 11, 2021, 07:25:57 pm »
only changes once high to low or vice versa

Code: [Select]
`x = {false, true, false, false, true, false, true, true}    for i = 0, 7 do        z = x[i]    endbethigh = z`

someone explain why it is not working in array sequence

I'm not sure if you solved this already.  Your for loop is probably working fine, but it is looping to the end and giving you the last result.  since the dicebot executues the dobet function in a loop already you don't really need another loop, you just need a way to iterate through your array.

for example you could use a couple if statements and a counter.

Code: [Select]
`count += 1x = {false, true, false, false, true, false, true, true}if count >= 8 then    count = 0end    bethigh = x[count]`
this should iterate through your array and reset once the count hits 8 "the number of elements in your array"

Pages: [1]