Total Miner Forums

Total Miner => Creative Features => Topic started by: Zephyreas on June 04, 2015, 12:31:38 PM

Title: The Lucky 7 Slot Machine
Post by: Zephyreas on June 04, 2015, 12:31:38 PM
One spin would line up to be one spin!

Example of the machine
(http://i57.tinypic.com/2s6k3gw.jpg)

---Spin 1 (script)---
If
  IsRandom [percentage you want,100]
Then
  SetBlock [first coordinates here] [first color you want]
  Notify [Color you picked] [Local]
Elseif
  IsRandom [percentage you want,100]
Then
  SetBlock [second coordinates here] [second color you want]
  Notify [Color you picked] [Local]
Elseif
  IsRandom [percentage you want,100]
Then
  SetBlock [third coordinates here] [third color you want]
  Notify [color you picked] [Local]


---Spin 2 (script)---
If
  IsRandom [percentage you want,100]
Then
  SetBlock [first coordinates here] [first color you want]
  Notify [Color you picked] [Local]
Elseif
  IsRandom [percentage you want,100]
Then
  SetBlock [second coordinates here] [second color you want]
  Notify [Color you picked] [Local]
Elseif
  IsRandom [percentage you want,100]
Then
  SetBlock [third coordinates here] [third color you want]
  Notify [color you picked] [Local]


---Spin 3 (script)---
If
  IsRandom [percentage you want,100]
Then
  SetBlock [first coordinates here] [first color you want]
  Notify [Color you picked] [Local]
Elseif
  IsRandom [percentage you want,100]
Then
  SetBlock [second coordinates here] [second color you want]
  Notify [Color you picked] [Local]
Elseif
  IsRandom [percentage you want,100]
Then
  SetBlock [third coordinates here] [third color you want]
  Notify [color you picked] [Local]
Endif
  Script [Gamble Checking]

---Gamble Checking (script)---
Notify [Checking!] [Local]
Wait [2000]
If
  IsBlock [Your Coordinates Here] [First Color you picked] [True]
  IsBlock [Your Coordinates Here] [First Color you picked] [True]
  IsBlock [Your Coordinates Here] [First Color you picked] [True]
Then
  Notify [[gamertag] has won [prize award here] from the slot machine]
  Inventory [player] [add] [prize] [amount]
  Teleport [player] [out of the machine]
  SetBlock [coordinates here] [none]
  SetBlock [coordinates here] [none]
  SetBlock [coordinates here] [none]
Elseif
  IsBlock [Your Coordinates Here] [Second Color you picked] [True]
  IsBlock [Your Coordinates Here] [Second Color you picked] [True]
  IsBlock [Your Coordinates Here] [Second Color you picked] [True]
Then
  Notify [[gamertag] has won [prize award here] from the slot machine]
  Inventory [player] [add] [prize] [amount]
  Teleport [player] [out of the machine]
  SetBlock [coordinates here] [none]
  SetBlock [coordinates here] [none]
  SetBlock [coordinates here] [none]
Elseif
  IsBlock [Your Coordinates Here] [Third Color you picked] [True]
  IsBlock [Your Coordinates Here] [Third Color you picked] [True]
  IsBlock [Your Coordinates Here] [Third Color you picked] [True]
Then
  Notify [[gamertag] has won [prize award here] from the slot machine]
  Inventory [player] [add] [prize] [amount]
  Teleport [player] [out of the machine]
  SetBlock [coordinates here] [none]
  SetBlock [coordinates here] [none]
  SetBlock [coordinates here] [none]
Else
  Notify [[gamertag] has lost!]
  SetBlock [coordinates here] [none]
  SetBlock [coordinates here] [none]
  SetBlock [coordinates here] [none]
  Teleport [player] [out of the machine]

If need any help, just message me on the forums! ;)
 




Title: Re: The Lucky 7 Slot Machine
Post by: Zephyreas on June 04, 2015, 12:35:26 PM
Fixing the text, because of the forums colors!