Scan med din iPhone for at installere
A fun little gambling game!
Nyheder
Version 1.1
made auto update work ITS MY OWN SCRIPT FOR IT
Hvad den gør
90 handlinger-
CommentGamble Game by TH3C@g4M3r (sub to me on youtube!) Inspired by beat the bank by @robric18
-
CommentUpdate 1.0 Release!
-
CommentThings to add: 1.) Double or nothing or just expanding the gambling so it’s more than one thing 2.) Stats stuff Give me your ideas in the comments of [website]!
-
CommentVersion stuff VVVV
-
Text
-
URLqwep7.github.io/Gamble-Game/version.html
-
URLshareshortcuts.com/shortcuts/3394-gamble-game.html
-
Get Contents of URL…
-
If
-
Choose from MenuYour version is out of date!
-
Choose from MenuUpdate!
-
Open URLs
-
Stop This Shortcut
-
Choose from MenuKeep the old version
-
Comment^^^^ Version stuff
-
CommentFolder making VVVV
-
Create Folder
-
Get File
-
Comment^^^^ Folder making
-
CommentFirst time check (collapsed) VVVV
-
If
-
Text
-
Save File
-
Text
-
Save File
-
Comment^^^^ First time check
-
CommentSet money to saved file VVVV
-
File
-
Set VariableMoney
-
Comment0 check (collapsed)
-
If
-
Text
-
Set VariableMoney
-
Save File
-
Show Alert
-
Comment^^^^ Set money to saved file
-
CommentRandom number pick VVVV
-
Random Number
-
Set VariableNumber
-
Comment^^^^ Random number pick
-
CommentAsk for bet VVVV
-
Ask for InputHow much to bet? You have …$ (if you bet more than your total it will just be all in)
-
Comment^^^^ Ask for bet
-
CommentCheck if bet is over money (collapsed) VVVV
-
If
-
Set VariableBet
-
If
-
Set VariableBet
-
Comment^^^^ Check if bet is over money
-
CommentPick part (collapsed) VVVV
-
Choose from MenuDo you think the number is over or under 50?
-
Choose from MenuOver
-
If
-
CommentCorrect
-
Calculate
-
Set VariableMoney
-
Save File
-
Show Alert
-
If
-
CommentIncorrect
-
Calculate
-
Set VariableMoney
-
Save File
-
Show Alert
-
Choose from MenuUnder
-
CommentCorrect
-
If
-
Calculate
-
Set VariableMoney
-
Save File
-
Show Alert
-
If
-
CommentIncorrect
-
Calculate
-
Set VariableMoney
-
Save File
-
Show Alert
-
Comment^^^^ Pick part
-
CommentMoney reset (collapsed) VVVV
-
If
-
Text
-
Save File
-
Show Alert
-
Comment^^^^ Money reset
-
CommentPlay again (collapsed) VVVV
-
Choose from MenuPlay again?
-
Choose from MenuYes!
-
Run ShortcutGamble Game
-
Choose from MenuNo
-
Comment^^^^ Play again
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/web'
#define color green
#define glyph appleCash
/*
Gamble Game by TH3C@g4M3r (sub to me on youtube!)
Inspired by beat the bank by @robric18
*/
/*
Update 1.0
Release!
*/
/*
Things to add:
1.) Double or nothing or just expanding the gambling so it’s more than one thing
2.) Stats stuff
Give me your ideas in the comments of [website]!
*/
/*
Version stuff
VVVV
*/
url("qwep7.github.io/Gamble-Game/version.html")
const URL = url("shareshortcuts.com/shortcuts/3394-gamble-game.html")
const ContentsOfURL = downloadURL()
if ContentsOfURL != {
menu "Your version is out of date!" {
item "Update!":
openURL(URL)
stop()
item "Keep the old version":
}
}
/*
^^^^
Version stuff
*/
/*
Folder making
VVVV
*/
const CreatedFolder = createFolder("Gamble Game")
const File = getFile("firstdetect.txt", CreatedFolder, false)
/*
^^^^
Folder making
*/
/*
First time check (collapsed)
VVVV
*/
if !File {
const Text = "1000"
saveFile("/money.txt", Text, true)
const Text1 = "firstdetect.txt"
saveFilePrompt(Text1)
}
/*
^^^^
First time check
*/
/*
Set money to saved file
VVVV
*/
file()
@Money
// 0 check (collapsed)
if @Money == 0 {
@Money = "1000"
saveFile("/money.txt", @Money, true)
confirm("You rage quit when you hit zero last time. Your money has been reset to 1000.")
}
/*
^^^^
Set money to saved file
*/
/*
Random number pick
VVVV
*/
randomNumber(1, 100)
@Number
/*
^^^^
Random number pick
*/
/*
Ask for bet
VVVV
*/
const AskForInput = prompt("How much to bet? You have {@Money}$ (if you bet more than your total it will just be all in)", "Number")
/*
^^^^
Ask for bet
*/
/*
Check if bet is over money (collapsed)
VVVV
*/
if AskForInput > @Money {
@Bet = @Money
} else {
@Bet = AskForInput
}
/*
^^^^
Check if bet is over money
*/
/*
Pick part (collapsed)
VVVV
*/
menu "Do you think the number is over or under 50?" {
item "Over":
if @Number >= 50 {
// Correct
@Money = @Money + @Bet
saveFile("/money.txt", @Money, true)
confirm("You win! You now have {@Money}$")
} else {
// Incorrect
@Money = @Money - @Bet
saveFile("/money.txt", @Money, true)
confirm("You lose! You now have {@Money}$")
}
item "Under":
// Correct
if @Money <= 50 {
@Money = @Money + @Bet
saveFile("/money.txt", @Money, true)
confirm("You win! You now have {@Money}$")
} else {
// Incorrect
@Money = @Money - @Bet
saveFile("/money.txt", @Money, true)
confirm("You lose! You now have {@Money}$")
}
}
/*
^^^^
Pick part
*/
/*
Money reset (collapsed)
VVVV
*/
if @Money <= 0 {
const Text2 = "1000"
saveFile("/money.txt", Text2, true)
confirm("You lost all your money. It has been reset to 1000$")
}
/*
^^^^
Money reset
*/
/*
Play again (collapsed)
VVVV
*/
menu "Play again?" {
item "Yes!":
runSelf()
item "No":
}
/*
^^^^
Play again
*/
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Du vil måske også kunne lide
Annonce