I'm basically looking for a sort of "pick a name out of a hat" type thing. For example, I input 10 names into it and then hit the button and it randomly will display 1 of the 10 names. You can model is on something like the spin the Wheel game on Price is Right. Only requirements I really need are it must be able to hold a min of 30 characters per slot, preferably not be an instantly displayed result (if its a spin the wheel thing, have it slow down for a second or 2 before stopping.) Have the ability to not repeat a previously displayed result, ie blacks it out or no longer stops on it.
In actuality, I want this because I have a **** load of chores to do before my wife gets home in January and the only way I seem to get anything done is to make a game of it, lol. I'll check back frequently to answer any questions that come up, but feel free to design it in whatever way you like and have it display your name prominently at the top if you like.
AppTitle "Madk's SPIN THE WHEEL"
SeedRnd Millisecs()
Print "Welcome!"
Print ""
Type item
Field txt$
End Type
Global inum=0,again=0
Repeat
Print ""
Print "Type the name to add it to the list, or type 'spin' to spin the wheel!"
Repeat
Local t$=Trim(Lower(Input("> ")))
If t="spin" Or t="'spin'" Then Exit
i.item=New item
i\txt=t:inum=inum+1
Forever
Print ""
Print "Spinning the wheel, hit enter to continue!"
Input
Print ". . ."
Delay 900
Print ". ."
Delay 900
Print "."
Delay 900
Local choose=Rand(1,inum)
For i.item=Each item
choose=choose-1
If choose=<0 Then
Print "The wheel landed on "+i\txt+"!"
Input
Exit
EndIf
Next
For i.item=Each item
Delete i
Next
Print ""
Print ""
Forever
I got impatient so I compiled it myself real quick using ur code and called it spin.exe . Had an error when I ran it, so I figured I'd just wait for you. Went to delete the one I made and my computer crashed. Came back and no matter what I did, I couldnt get rid of spin.exe. It wasn't running, various process viewers were telling me it wasn't in use but that I also was missing 1 permission to access it. I'd never heard of that before. Anyways, used HijackThis is have it deleted on reboot, and now its gone.
And yea, that does the job nicely madk, was kinding hoping for a more GUI based rather than command line, but this works. If you get bored though, add something similar to a clock face with maybe a little spinning arrow. You know, like that game I can't seem to think of that has you stand on dots on a big plastic mat on the floor, then spin to see what body part goes to what color next. Great game when ur drunk and only playing with 5 women.
And yea, that does the job nicely madk, was kinding hoping for a more GUI based rather than command line, but this works. If you get bored though, add something similar to a clock face with maybe a little spinning arrow. You know, like that game I can't seem to think of that has you stand on dots on a big plastic mat on the floor, then spin to see what body part goes to what color next. Great game when ur drunk and only playing with 5 women.
You mean Twister. Honestly, I'd imagine it better as that giant wheel from Wheel of Fortune.
And yea, that does the job nicely madk, was kinding hoping for a more GUI based rather than command line, but this works. If you get bored though, add something similar to a clock face with maybe a little spinning arrow. You know, like that game I can't seem to think of that has you stand on dots on a big plastic mat on the floor, then spin to see what body part goes to what color next. Great game when ur drunk and only playing with 5 women.
You mean Twister. Honestly, I'd imagine it better as that giant wheel from Wheel of Fortune.
For the life of me I could not think of the name twister.
I got impatient so I compiled it myself real quick using ur code and called it spin.exe . Had an error when I ran it, so I figured I'd just wait for you. Went to delete the one I made and my computer crashed. Came back and no matter what I did, I couldnt get rid of spin.exe. It wasn't running, various process viewers were telling me it wasn't in use but that I also was missing 1 permission to access it. I'd never heard of that before. Anyways, used HijackThis is have it deleted on reboot, and now its gone.
What did you "compile" it with? A hammer to the tower? ... O_o
In actuality, I want this because I have a **** load of chores to do before my wife gets home in January and the only way I seem to get anything done is to make a game of it, lol. I'll check back frequently to answer any questions that come up, but feel free to design it in whatever way you like and have it display your name prominently at the top if you like.
Thanks in advance.
Source (BlitzPlus):
EDIT: fix'd
And yea, that does the job nicely madk, was kinding hoping for a more GUI based rather than command line, but this works. If you get bored though, add something similar to a clock face with maybe a little spinning arrow. You know, like that game I can't seem to think of that has you stand on dots on a big plastic mat on the floor, then spin to see what body part goes to what color next. Great game when ur drunk and only playing with 5 women.
You mean Twister. Honestly, I'd imagine it better as that giant wheel from Wheel of Fortune.
For the life of me I could not think of the name twister.
What did you "compile" it with? A hammer to the tower? ... O_o