(set: $pioche to $pioche - (random: 1,2)) (if: $pioche < 1)[(set: $pioche to 0)](set: $drop to (random: 0,5))(set: $gold to $gold + $drop)
(if: $drop >1)[You dig the rock and find $drop gold nuggets !<img src= https://i0.wp.com/www.addfunandmix.com/wp-content/uploads/2016/10/activitechercheurdor2.jpg?resize=1080%2C718>]
(if: $drop is 1)[You only found one gold nugget !<img src= https://i0.wp.com/www.addfunandmix.com/wp-content/uploads/2016/10/activitechercheurdor2.jpg?resize=1080%2C718>]
(if: $drop <1)[You haven't found any gold nuggets !]
(if: (random: 1,100) <= 1)[What luck ! You found a diamond ! (set: $diamant to $diamant + 1)](if: $pioche >= 1)[[[KEEP DIGING THE MINE 1|mine 1]]](else:)[]
(if: $mine2 is false and $gold >= 200)[[[OPEN MINE 2 FOR 200 GOLD NUGGETS|achat mine 2]]]
(elseif: $mine2 is true and $pioche >= 1)[[[DIG THE MINE 2|mine 2]]]
(if: $mine3 is false and $gold >= 1000)[[[OPEN MINE 3 FOR 200 GOLD NUGGETS|achat mine 3]]]
(elseif: $mine3 is true and $pioche >= 1)[[[DIG THE MINE 3|mine 3]]]
[[BACK TO THE MAIN ENTRANCE|base]]
Gold nuggets : (print: $gold)
Diamonds : $diamant (if: $diamant >=1)[/ [[SELL DIAMONDS|vente]]](else:)[]
Secrets : (if: $portail is true)[[[TAKE THE SECRET PASSAGEWAY|portail spatio-temporel]] ](else:)[none]
Pickaxe condition: : $pioche / 100
(link-reveal: "REPAIR THE PICKAXE " )[(if: $pioche >= 100)[ The pickaxe doesn't need to be repaired !](if: $pioche < 100 and >=80)[[[(10 gold nuggets)|réparation 1]]](if: $pioche < 80 and >=60)[[[(20 gold nuggets)|réparation 2]]](if: $pioche < 60 and >=40)[[[(30 gold nuggets)|réparation 3]]](if: $pioche < 40 and >=20)[[[(40 gold nuggets)|réparation 4]]](if: $pioche < 20 and >=1)[[[(50 gold nuggets)|réparation 4]]](elseif: $pioche <1)[Your pickaxe is broken ! [[You have to buy another one !|Achat pioche]]]]Hello Beaglescrooge ! Here you are at the entrance to the mines. You can :
(if: $pioche >= 1)[[[DIG THE MINE 1|mine 1]]](else:)[]
(if: $mine2 is false and $gold >= 200)[[[OPEN MINE 2 FOR 200 GOLD NUGGETS|achat mine 2]]]
(elseif: $mine2 is true and $pioche >= 1)[[[DIG THE MINE 2|mine 2]]]
(if: $mine3 is false and $gold >= 1000)[[[OPEN MINE 3 FOR 1000 GOLD NUGGETS|achat mine 3]]]
(elseif: $mine3 is true and $pioche >= 1)[[[DIG THE MINE 3|mine 3]]]
Gold nuggets : (print: $gold)
Diamonds : $diamant (if: $diamant >=1)[/ [[SELL DIAMONDS|vente]]](else:)[]
Secrets : (if: $portail is true)[[[TAKE THE SECRET PASSAGEWAY|portail spatio-temporel]] ](else:)[none]
Pickaxe condition: : $pioche / 100
(link-reveal: "REPAIR THE PICKAXE " )[(if: $pioche >= 100)[ The pickaxe doesn't need to be repaired !](if: $pioche < 100 and >=80)[[[(10 gold nuggets)|réparation 1]]](if: $pioche < 80 and >=60)[[[(20 gold nuggets)|réparation 2]]](if: $pioche < 60 and >=40)[[[(30 gold nuggets)|réparation 3]]](if: $pioche < 40 and >=20)[[[(40 gold nuggets)|réparation 4]]](if: $pioche < 20 and >=1)[[[(50 gold nuggets)|réparation 4]]](elseif: $pioche <1)[Your pickaxe is broken ! [[You have to buy another one !|Achat pioche]]]]
(link-reveal: "SAVE")[
[SAVE A]<savea| (click: ?savea)[(if:(save-game:"Save A",$day+", " + $hour))[Game saved ! Gold nuggets : (print: $gold). ](else: )[Sorry, no saved game !]](set: $day to (current-date:))(set: $hour to (current-time:))(if: (savedgames:) contains "Save A")[(print: (saved-games:)'s "Save A")](else:)[]
[SAVE B]<saveb| (click: ?saveb)[(if:(save-game:"Save B",$day+", " + $hour))[Game saved ! Gold nuggets : (print: $gold). ](else: )[Sorry, no saved game !]](set: $day to (current-date:))(set: $hour to (current-time:))(if: (savedgames:) contains "Save B")[(print: (saved-games:)'s "Save B")](else:)[]
[SAVE C]<savec| (click: ?savec)[(if:(save-game:"Save C",$day+", " + $hour))[Game saved ! Gold nuggets : (print: $gold). ](else: )[Sorry, no saved game !]](set: $day to (current-date:))(set: $hour to (current-time:))(if: (savedgames:) contains "Save C")[(print: (saved-games:)'s "Save C")](else:)[]]
(link-reveal: "LOAD A GAME")[
[GAME 1]<loada| (click: ?loada)[(load-game: "Save A")](if: (savedgames:) contains "Save A")[(print: (saved-games:)'s "Save A")](else:)[]
[GAME 2]<loadb| (click: ?loadb)[(load-game: "Save B")](if: (savedgames:) contains "Save B")[(print: (saved-games:)'s "Save B")](else:)[]
[GAME 3]<loadc| (click: ?loadc)[(load-game: "Save C")](if: (savedgames:) contains "Save C")[(print: (saved-games:)'s "Save C")](else:)[]]
[[START THE GAME|base]]
[[BACK TO START SCREEN|Accueil]]
(set: $mine2 to false)(set: $mine3 to false)(set: $pioche to 100)(set: $diamant to 0)(set: $gold to 0)(set: $portail to false)(set: $pioche to $pioche - (random: 1,4)) (if: $pioche < 1)[(set: $pioche to 0)](set: $drop to (random: 1,8))(set: $gold to $gold + $drop)(if: $drop >1)[You dig the rock and find $drop gold nuggets !<img src= https://i0.wp.com/www.addfunandmix.com/wp-content/uploads/2016/10/activitechercheurdor2.jpg?resize=1080%2C718>]
(if: $drop is 1)[You only found one gold nugget !<img src= https://i0.wp.com/www.addfunandmix.com/wp-content/uploads/2016/10/activitechercheurdor2.jpg?resize=1080%2C718>]
(if: $drop <1)[You haven't found any gold nuggets !]
(if: (random: 1,100) <= 2)[What luck ! You found a diamond !
(set: $diamant to $diamant + 1)](if: $pioche >= 1)[[[KEEP DIGING THE MINE 2|mine 2]]](else:)[]
(if: $mine3 is false and $gold >= 1000)[[[OPEN MINE 3 FOR 1000 GOLD NUGGETS|achat mine 3]]]
(elseif: $mine3 is true and $pioche >= 1)[[[DIG THE MINE 3|mine 3]].]
[[BACK TO THE MAIN ENTRANCE|base]]
Gold nuggets : (print: $gold)
Diamonds : $diamant (if: $diamant >=1)[/ [[SELL DIAMONDS|vente]]](else:)[]
Secrets : (if: $portail is true)[[[TAKE THE SECRET PASSAGEWAY|portail spatio-temporel]] ](else:)[none]
Pickaxe condition: : $pioche / 100
(link-reveal: "REPAIR THE PICKAXE " )[(if: $pioche >= 100)[ The pickaxe doesn't need to be repaired !](if: $pioche < 100 and >=80)[[[(10 gold nuggets)|réparation 1]]](if: $pioche < 80 and >=60)[[[(20 gold nuggets)|réparation 2]]](if: $pioche < 60 and >=40)[[[(30 gold nuggets)|réparation 3]]](if: $pioche < 40 and >=20)[[[(40 gold nuggets)|réparation 4]]](if: $pioche < 20 and >=1)[[[(50 gold nuggets)|réparation 4]]](elseif: $pioche <1)[Your pickaxe is broken ! [[You have to buy another one !|Achat pioche]]]](if: $gold >= 10)[(set: $pioche to $pioche + 20)(if: $pioche > 100)[(set: $pioche to 100)](set: $gold to $gold - 10)[[Your pickaxe is fixed !|base]]]
(else:)[[[You don't have enough money !|base]]]
Gold nuggets : $gold
Diamonds : $diamant
Pickaxe condition: : $pioche / 100(set: $pioche to $pioche - (random: 2,8)) (if: $pioche < 1)[(set: $pioche to 0)](set: $drop to (random: 2,16))(set: $gold to $gold + $drop)(if: $drop >1)[You dig the rock and find $drop gold nuggets !<img src= https://i0.wp.com/www.addfunandmix.com/wp-content/uploads/2016/10/activitechercheurdor2.jpg?resize=1080%2C718>]
(if: $drop is 1)[You only found one gold nugget !<img src= https://i0.wp.com/www.addfunandmix.com/wp-content/uploads/2016/10/activitechercheurdor2.jpg?resize=1080%2C718>]
(if: $drop <1)[You haven't found any gold nuggets !]
(if: (random: 1,100) <= 5)[What luck ! You found a diamond ! (set: $diamant to $diamant + 1)]
(if: $pioche >= 1)[[[KEEP DIGING THE MINE 3|mine 3]]](else:)[]
(if: $portail is false)[(if: (random: 1,100) <= 1)[What luck! You found a secret passageway !(set: $portail to true)]]
(if: $portail is true)[[[TAKE THE SECRET PASSAGEWAY|portail spatio-temporel]] ](else:)[]
[[BACK TO MAIN ENTRANCE|base]]
Gold nuggets : (print: $gold)
Diamonds : $diamant (if: $diamant >=1)[/ [[SELL DIAMONDS|vente]]](else:)[]
Secrets : (if: $portail is true)[[[TAKE THE SECRET PASSAGEWAY|portail spatio-temporel]] ](else:)[none]
Pickaxe condition: : $pioche / 100
(link-reveal: "REPAIR THE PICKAXE " )[(if: $pioche >= 100)[ The pickaxe doesn't need to be repaired !](if: $pioche < 100 and >=80)[[[(10 gold nuggets)|réparation 1]]](if: $pioche < 80 and >=60)[[[(20 gold nuggets)|réparation 2]]](if: $pioche < 60 and >=40)[[[(30 gold nuggets)|réparation 3]]](if: $pioche < 40 and >=20)[[[(40 gold nuggets)|réparation 4]]](if: $pioche < 20 and >=1)[[[(50 gold nuggets)|réparation 4]]](elseif: $pioche <1)[Your pickaxe is broken ! [[You have to buy another one !|Achat pioche]]]]Would you like to buy a new pickaxe ? It costs 100 gold nuggets.
[[YES]]
[[NO|base]]
Gold nuggets : $gold
Diamonds : $diamant
Pickaxe condition: : $pioche / 100(if: $gold >= 100)[(set: $gold to $gold - 100)(set: $pioche to $pioche + 100)(if: $pioche > 100)[(set: $pioche to 100)][[You bought a new pickaxe !|base]]](else:)[[[You don't have enough money!|base]]]Would you like to open the second mine for 200 nuggets?
[[YES|mine 2 ouverte]]
[[NO|mine 1]](set: $mine2 to true)(set: $gold to $gold - 200)
Mine 2 is now open !
(if: $mine2 is true and $pioche >= 1)[[[DIG THE MINE 2|mine 2]] or [[BACK TO THE MAIN ENTRANCE|base]]]
(else:)[[[BACK TO THE MAIN ENTRANCE|base]]]Would you like to open the third mine for 1000 nuggets?
[[YES|mine 3 ouverte]]
[[NO|mine 2]](set: $mine3 to true)(set: $gold to $gold - 1000)
Mine 3 is now open !
(if: $mine3 is true and $pioche >= 1)[[[DIG THE MINE 3|mine 3]] or [[BACK TO THE MAIN ENTRANCE|base]]]
(else:)[[[BACK TO THE MAIN ENTRANCEE|base]]](if: $gold >= 30)[(set: $pioche to $pioche + 60)(if: $pioche > 100)[(set: $pioche to 100)](set: $gold to $gold - 30)[[Your pickaxe is fixed !|base]]]
(else:)[[[You don't have enough money !|base]]]
Gold nuggets : $gold
Diamonds : $diamant
Pickaxe condition: : $pioche / 100(if: $gold >= 50)[(set: $pioche to $pioche + 100)(if: $pioche > 100)[(set: $pioche to 100)](set: $gold to $gold - 50)[[Your pickaxe is fixed !|base]]]
(else:)[[[You don't have enough money !|base]]]
Gold nuggets : $gold
Diamonds : $diamant
Pickaxe condition: : $pioche / 100After a hundred meters crawling flat on your stomach, you end up in a strange room. Its high vaulted ceiling leaning on thin columns, its smooth and shiny walls, its translucent pavement, intrigue you. They seem to be made of an unknown material!
On closer inspection, you notice a strange light emanating from a portal in the centre of the room!
You hesitate between diving into the light or returning to the entrance of the mines...
MAKE YOUR CHOICE:
1) If you decide to pass through the light gate, there may not be any possibility of return. It's a journey into the unknown that's both scary and exciting ![[<img src=https://lparchive.org/Chrono-Trigger-(by-Leavemywife)/Update%2007/51-finalwarp.gif>->Destination inconnue]]
2)You don't feel ready for adventure yet. So you decide to go [[back to the main entrance of the mines.|base]](align: "=><==")[END OF EPISODE 1
To be continued...]1936198420501789<center><h2>//The Secret of The Gold Mine//</h2>
An interactive fiction by
Courtleciel @sebharost </center>
In this story you play Beagle Scrooge, an old gold digger who would like to live exciting adventures instead of digging the same mines again and again for 50 years !
Who knows what wonder you will find in the depths of the earth ? Gold nuggets and diamonds may not be the only resources to collect...
<img src= https://img1.goodfon.com/wallpaper/big/c/10/gold-far-west-hopes-cowboys.jpg>
[[NEW GAME|Début]]
OR
(link-reveal: "LOAD A GAME")[
[GAME 1]<loada| (click: ?loada)[(load-game: "Save A")](if: (savedgames:) contains "Save A")[(print: (saved-games:)'s "Save A")](else:)[]
[GAME 2]<loadb| (click: ?loadb)[(load-game: "Save B")](if: (savedgames:) contains "Save B")[(print: (saved-games:)'s "Save B")](else:)[]
[GAME 3]<loadc| (click: ?loadc)[(load-game: "Save C")](if: (savedgames:) contains "Save C")[(print: (saved-games:)'s "Save C")](else:)[]](if: $gold >= 20)[(set: $pioche to $pioche + 40)(if: $pioche > 100)[(set: $pioche to 100)](set: $gold to $gold - 20)[[[Your pickaxe is fixed !|base]]]
(else:)[[[You don't have enough money !|base]]]
Gold nuggets : $gold
Diamonds : $diamant
Pickaxe condition: : $pioche / 100
(if: $gold >= 40)[(set: $pioche to $pioche + 80)(if: $pioche > 100)[(set: $pioche to 100)](set: $gold to $gold - 40)[[Your pickaxe is fixed !|base]]]
(else:)[[[You don't have enough money !|base]]]
Gold nuggets : $gold
Diamonds : $diamant
Pickaxe condition: : $pioche / 100(if: $diamant >=1 and <2)[I can buy you your diamond for 100 nuggets.
[[ACCEPT|diamant 1]]
[[REFUSE|base]]]
(if: $diamant >=2 and <3)[I can buy you two diamonds for 200 nuggets.
[[ACCEPT|diamant 2]]
[[REFUSE|base]]]
(if: $diamant >=3 and <4)[I can buy your three diamonds for 300 nuggets.
[[ACCEPT|diamant 3 ]]
[[REFUSE|base]]]
(if: $diamant >=4 and <5)[I can buy you your four diamonds for 400 nuggets.
[[ACCEPT|diamant 4]]
[[REFUSE|base]]]
(if: $diamant >=5 and <6)[I can buy you your five diamonds for 500 nuggets.
[[ACCEPT|diamant 5]]
[[REFUSE|base]]]
(if: $diamant >=6)[I can buy you up to five diamonds for 500 nuggets.
[[ACCEPT|diamant 5]]
[[REFUSE|base]]]
(set: $diamant to $diamant -1)(set: $gold to $gold +100)
Diamond sold for 100 gold nuggets !
[[Go back to the mines entrance|base]]
Gold nuggets : $gold
Diamonds : $diamant
Pickaxe condition: : $pioche / 100(set: $diamant to $diamant -2)(set: $gold to $gold +200)
2 diamonds sold for 200 gold nuggets !
[[Go back to the mines entrance|base]]
Gold nuggets : $gold
Diamonds : $diamant
Pickaxe condition: : $pioche / 100(set: $diamant to $diamant -3)(set: $gold to $gold +300)
3 diamonds sold for 300 gold nuggets !
[[Go back to the mines entrance|base]]
Gold nuggets : $gold
Diamonds : $diamant
Pickaxe condition: : $pioche / 100(set: $diamant to $diamant -4)(set: $gold to $gold +400)
4 diamonds sold for 400 gold nuggets !
[[Go back to the mines entrance|base]]
Gold nuggets : $gold
Diamonds : $diamant
Pickaxe condition: : $pioche / 100(set: $diamant to $diamant -5)(set: $gold to $gold +500)
5 diamonds sold for 500 gold nuggets !
[[Go back to the mines entrance|base]]
Gold nuggets : $gold
Diamonds : $diamant
Pickaxe condition: : $pioche / 100(display: (either: "A", "B", "C", "D"))