| version 1.2 | | version 1.3 |
|---|
| | |
| cost = 1 #Price of usage | | cost = 1 #Price of usage |
| | | |
| #Change the items on the slot spinner or the number of items. | | #Change the items on the slot spinner or the number of items. |
| slotlist = ["Maid", "Merchant", "Coin", "Diamond", "Imp", "Devil", "JackPot"] | | slotlist = ["Merchant", "Coin", "Diamond", "Imp", "Devil", "JackPot"] |
| | | |
| spinners = 4 #How many spinners on the slotmachine? | | spinners = 4 #How many spinners on the slotmachine? |
| | | |
| | |
| for item in results: | | for item in results: |
| #match all but one - pays out by coin e.g 3 to 1 or 4 to 1 | | #match all but one - pays out by coin e.g 3 to 1 or 4 to 1 |
| if results.count(item) == spinners-1: | | if results.count(item) == spinners-1: |
| if item == "Maid": | | if item == "Merchant": |
| pay = 1 | | pay = 1 |
| elif item == "Merchant": | | |
| pay = 2 | | |
| elif item == "Coin": | | elif item == "Coin": |
| pay = 3 | | pay = 2 |
| elif item == "Diamond": | | elif item == "Diamond": |
| pay = 4 | | pay = 4 |
| elif item == "Imp": | | elif item == "Imp": |
| | |
| elif results.count(item) == spinners: | | elif results.count(item) == spinners: |
| #all match - pays out as percent of pot | | #all match - pays out as percent of pot |
| CFPython.Write('%d %ss, a Major win!' %(spinners,item),activator) | | CFPython.Write('%d %ss, a Major win!' %(spinners,item),activator) |
| if item == "Maid": | | if item == "Merchant": |
| pay = .10 | | pay = .10 |
| elif item == "Merchant": | | |
| pay = .15 | | |
| elif item == "Coin": | | elif item == "Coin": |
| pay = .25 | | pay = .15 |
| elif item == "Diamond": | | elif item == "Diamond": |
| pay = .25 | | pay = .20 |
| elif item == "Imp": | | elif item == "Imp": |
| pay = .35 | | pay = .30 |
| elif item == "Devil": | | elif item == "Devil": |
| pay = .50 | | pay = .50 |
| elif item == "JackPot": | | elif item == "JackPot": |