Is this the cleanest code?
No.
But it does work?
Yes, and that is all that matters for this.
It automatically repeats itself and can be activated with Ctrl+J (the keybind from the tutorial) I learned this in like two hours lol.
If you want to play it safe: delete the hunting section, as there can be some rather bad outcomes.
Code: Select all
^j::
program:
loop 1 {
Random, laptop, 1, 20
Random, time, 5000, 8000
Random, answer, 1, 4
Random, memes, 1, 5
Send, pls fish
Send, {enter}
sleep time
Send, pls dig
Send, {enter}
sleep time
Send, pls trivia
Send, {enter}
sleep time
If (answer = 1)
choice = A
else if (answer = 2)
choice = B
else if (answer = 3)
choice = C
else if (answer = 4)
choice = D
Send, %choice%
Send, {enter}
sleep time
Send, pls hunt
Send, {enter}
sleep time
if (laptop = 1)
{
goto, buyLaptop
}
script2:
Send, Pls pm
Send, {enter}
sleep time
If (memes = 1)
type = f
else if (memes = 2)
type = r
else if (memes = 3)
type = i
else if (memes = 4)
type = c
else if (memes = 5)
type = k
Send, %type%
Send, {enter}
sleep time
Send, pls beg
Send, {enter}
sleep time
goto, program
buyLaptop:
Send, pls buy laptop
Send, {enter}
sleep time
goto, script2
}