Scraplands<center>Welcome to
Scraplands
</center>
<center>[[Enter the Scraplands|Start]]</center>
<center>
Created By: Joe DeMarco (Shad0fx)
(overland Gamer)
A game made for
Glbbal Game Jam 2020.
Site Location: Omaha, Nebraska
Special thanks to our site hosts
RHO Interactive
University of Nebraska Omaha
</center><center>Scraplands</center>
<center>Find scrap, repair your home, survive</center>
Scrap is the lifeforce of scraplands. With it you can build, repair, or barter your way around the region.
You are returning home from a scrap run.
[[Head Home|Programming the rules]]
###Game Rules Brief
Each time you explore you will expend 1 fuel. You may explore further from home, or towards home.
Each time you reach a new area you will come across areas to explore. Those marked Red are high-risk, high-reward. Those marked in Green are low-low reward. You may ignore the area all together.
Be mindful of your fuel.
Return to your garage drop off scrap to your garage.
[[Head Home|Programming the rules]]
[[About the game|About]]<center>Scraplands</center>
<center>Find a car, find parts, fix car, race or sell car, repeat</center>
<center><b>Narrative</b></center>
You will go on supply runs looking for cars, supplies, contacts and local events. Generate fame, gather scraps to upgrade your vehicles. At least that's the grand idea. Lets see what we get done in the time we have left.
<center><b>Global Game Jam</b></center>
A game made for Glbbal Game Jam 2020.
Site Location: Omaha, Nebraska
<center><b>Game Rules</b></center>
Each time you explore you will expend 1 fuel.
Each time you reach a new area you will come across areas to explore. Those marked Red are high-risk, high-reward. Those marked in Green are low-low reward.
Return to your garage drop off cargo, repair your vehicle and head back out on a run.
//Scraplands// is inspired by games such as //Everspace// and //FTL//. I created a similar game Pumpkin Patch for Spoopy Jam summer 2019. Learning from a youtuber named Dan Cox who has a fantastic tutorial series on twine.
The intent is to have a nice little press your luck kind of game. The player doesn't know that their house is being damaged as they drive through the //Scraplands//.
It needs a lot more testing and bug discovery. Coming from a software tester myself, it bugs me how many bugs are still in it. The base idea is there, the functions are there.
If I were to polish this game it would have a bit of a story element with it. Perhaps breaking the
[[Garage|Programming the rules]](set: $health to 10)
(set: $fuel to 2)
(set: $system to (array:) )
(set: $distancefromhome to 5)
(set: $scrap to 0)
(set: $homeHP to 10)
You've been out for a while, you are low on fuel and headed home.
[[Head Home|Head Home 1]]
[(display: "HUD")]<HUD|
(link: "Head Home")[
(set: $fuel to it - 1)
(set: $distancefromhome to it - 1)
(set: $homeHP to it - 1)
(goto: "Head Home 2")
]
(link: "Head Out")[
(set: $fuel to it - 1)
(set: $distancefromhome to it + 1)
(set: $homeHP to it - 1)
(goto: "Head Further Out 1")
]
(display: "Generate System")
(display: "Display System")
{
(set: _barterPercentage to (random: 1, 2))
(if: _barterPercentage is 1)[
(display: "Barter and Refuel")
]
}[(display: "HUD")]<HUD|
(link: "Head Home")[
(set: $fuel to it - 1)
(set: $distancefromhome to it - 1)
(set: $homeHP to it - 1)
(goto: "Head Home 1")
]
(link: "Head Out")[
(set: $fuel to it - 1)
(set: $distancefromhome to it + 1)
(set: $homeHP to it - 1)
(goto: "Head Further Out 1")
]
(display: "Generate System")
(display: "Display System")
{
(set: _barterPercentage to (random: 1, 2))
(if: _barterPercentage is 1)[
(display: "Barter and Refuel")
]
}{
<!-- Save a range from 0 to a max of 3 (total of max 4) -->
(set: _pointofinterest to (range: 0, (random: 1, 3) ) )
<!-- Reset system -->
(set: $system to (array:) )
<!-- Create a new system based on the previous random range -->
(for: each _i, ..._pointofinterest )[
<!-- Add to the new system, setting either RED or GREEN planets -->
(set: $system to it + (a: (either: "RED", "GREEN") ) )
]
}
Points of Interest
{
(for: each _pointofinterest, ...$system)[
(if: _pointofinterest is "RED")[
(link: _pointofinterest)[
(display: "Show Outcome - Red")
]
]
(if: _pointofinterest is "GREEN")[
(link: _pointofinterest)[
(display: "Show Outcome - Green")
]
]
<br>
]
}Health: $health
Fuel: |fuelStat>[$fuel]
Distance from Home: $distancefromhome
Scrap: |scrapStat>[$scrap]
Home: $homeHP
(display: "Check Status"){
(set: _percentage to (random: 1, 10) )
(if: _percentage is 1)[
(set: _foundFuel to (random: 1, 2) )
Fuel was found in some wreckage. (+_foundFuel to fuel)
(set: $fuel to it + _foundFuel)
] (else-if: _percentage is 2)[
(set: _foundFuel to (random: 1, 2) )
(set: _foundScrap to (random: 1, 3) )
You find some wreckage. There was a fight here. Amongst the leftover bits you discover some fuel and scrap.
(+_foundScrap to scrap)
(+_foundFuel to fuel)
(set: $fuel to it + _foundFuel)
(set: $scrap to it + _foundScrap)
] (else-if: _percentage is 3)[
(set: _foundFuel to (random: 2, 4) )
(set: _foundScrap to (random: 1, 3) )
You find an abandoned settlement.
(+_foundScrap to scrap)
(+_foundFuel to fuel)
(set: $fuel to it + _foundFuel)
(set: $scrap to it + _foundScrap)
] (else-if: _percentage is 4)[
(set: _foundHealth to (random: 1, 3) )
While searching you come across some very rough roads. Some raiders try to run you down. You escape but not without some damage.
(-_foundHealth to Health)
(set: $health to it - _foundHealth)
] (else-if: _percentage is 5)[
(set: _foundScrap to (random: 1, 3) )
You come across some abandoned scrap along the road. Cautiously you load it to your vehicle. (+_foundScrap to scrap)
(set: $scrap to it + _foundScrap )
] (else-if: _percentage is 6)[
(set: _foundScrap to (random: 5, 6))
(set: _foundFuel to (random: 3, 4))
(set: _foundHealth to (random: 1, 2))
You find another runner and decide to have a race to see who wins. It costs you a bit of fuel but you earn a lot of scrap. Your vehicle takes a bit of damage as you push it
(-_foundFuel to fuel)
(+_foundScrap to scrap)
(set: $health to it + _foundHealth )
(set: $scrap to it + _foundScrap)
(set: $fuel to it - _foundFuel)
]
(else:) [
Nothing's there.
]
(replace: ?HUD)[(display: "HUD")]
}{
(set: _percentage to (random: 1, 10) )
(if: _percentage is 1)[
(set: _foundFuel to (random: 2, 3) )
Fuel was found in some wreckage. (+_foundFuel to fuel)
(set: $fuel to it + _foundFuel)
] (else-if: _percentage is 2)[
(set: _foundFuel to (random: 1, 2) )
(set: _foundScrap to (random: 1, 3) )
(set: _foundHealth to (random: 1, 3) )
You find some wreckage. As you search a small raider party shows up and disrupts your search. After a brief scuffle you manage to get out with some supplies. You take a bit of damage as you speed off.
(+_foundScrap to Scrap)
(+_foundFuel to Fuel)
(-_foundHealth to Health)
(set: $fuel to it + _foundFuel)
(set: $scrap to it + _foundScrap)
(set: $health to it - _foundHealth)
] (else-if: _percentage is 3)[
(set: _foundFuel to (random: 2, 4) )
(set: _foundScrap to (random: 1, 3) )
You find an abandoned settlement.
(+_foundScrap to scrap)
(+_foundFuel to fuel)
(set: $fuel to it + _foundFuel)
(set: $scrap to it + _foundScrap)
] (else-if: _percentage is 4)[
(set: _foundHealth to (random: 1, 3) )
(set: _foundScrap to (random: 1, 3) )
While searching you come across some very rough roads. Some raiders try to run you down. You escape but not without some damage.
(-_foundHealth to Health)
(-_foundScrap to Scrap)
(set: $health to it - _foundHealth)
(if: $scrap >= 0)[
(set: $scrap to it - _foundScrap)
]
] (else-if: _percentage is 5)[
(set: _foundScrap to (random: 5, 6) )
(set: _foundHealth to (random: 4, 5) )
You come across some abandoned scrap along the road. Cautiously you load it to your vehicle. *BOOM* a trap is set off you take severe damage.
(+_foundScrap to Scrap)
(-_foundHealth to Health)
(set: $scrap to it + _foundScrap )
(set: $health to it - _foundHealth)
] (else-if: _percentage is 6)[
(set: _foundScrap to (random: 5, 6))
(set: _foundFuel to (random: 3, 4))
(set: _foundHealth to (random: 1, 2))
You find another runner and decide to have a race to see who wins. It costs you a bit of fuel but you earn a lot of scrap. Your vehicle takes a bit of damage as you push it
(-_foundFuel to fuel)
(+_foundScrap to scrap)
(set: $health to it + _foundHealth )
(set: $scrap to it + _foundScrap)
(set: $fuel to it - _foundFuel)
]
(else:) [
Nothing's there.
]
(replace: ?HUD)[(display: "HUD")]
}{
(if: $health <= 0)[
(goto: "Destroyed")
]
(if: $fuel <= 0)[
(goto: "Out of Gas")
]
(if: $distancefromhome <= 0)[
(goto: "Home")
]
(if: $fuel <= 0 and $homeHP <=0)[
(goto: "Home Gone")
]
(if: $homeHP <= 0)[
(goto: "Home Destroyed")
]
}
Your vehicle has taken too much damage. It bursts into flames and is destroyed.
###Game Over
[[Start Again|Welcome]]
Your vehicle sputters and stalls. The engine cuts out.
You set out on foot.
##Game Over
[[Start Again|Welcome]]You make it back home. You use scrap you have collected to repair the damage to your home and your vehicle.
(+ $scrap to home repair)
(set: $homeHP to it + $scrap)
(set: $scrap to 0)
Home: $homeHP
You repair your vehicle, and have some parts left over for bartering.
You can hop back into your car and [[Head out|Programming the rules 2]]
[[Rest|Rest]][(display: "HUD")]<HUD|
(link: "Head Out")[
(set: $fuel to it - 1)
(set: $distancefromhome to it + 1)
(set: $homeHP to it - 1)
(goto: "Head Further Out 2")
]
(link: "Head Home")[
(set: $fuel to it - 1)
(set: $distancefromhome to it - 1)
(set: $homeHP to it - 1)
(goto: "Head Home 2")
]
(display: "Generate System")
(display: "Display System")[(display: "HUD")]<HUD|
(link: "Head Out")[
(set: $fuel to it - 1)
(set: $distancefromhome to it + 1)
(set: $homeHP to it - 1)
(goto: "Head Further Out 1")
]
(link: "Head Home")[
(set: $fuel to it - 1)
(set: $distancefromhome to it - 1)
(set: $homeHP to it - 1)
(goto: "Head Home 2")
]
(display: "Generate System")
(display: "Display System")
{
(set: _barterPercentage to (random: 1, 2))
(if: _barterPercentage is 1)[
(display: "Barter and Refuel")
]
}You sleep a little bit.
(set: $homeHP to it + 10)
Home: $homeHP
You can hop back into your car and [[Head out|Programming the rules 2]]
You return home to find that it has been destroyed and taken over by a new group.
###Game Over
[[Start Again|Welcome]]You come across another runner. Would you like to trade scrap for fuel, or fuel for scrap?
Sell Scrap for fuel: {
(link-repeat: "|+|")[
(if: $scrap > 0)[
(set: $fuel to it + 1)
(set: $scrap to it - 1)
(replace: ?scrapStat)[|scrapStat>[$scrap]]
(replace: ?fuelStat)[|fuelStat>[$fuel]]
]
]
}
Trade fuel for scrap: {
(link-repeat: "|+|")[
(if: $fuel > 0)[
(set: $scrap to it + 1)
(set: $fuel to it - 1)
(replace: ?fuelStat)[|fuelStat>[$fuel]]
(replace: ?scrapStat)[|scrapStat>[$scrap]]
]
]
}(set: $health to 20)
(set: $fuel to 10)
(set: $system to (array:) )
(set: $distancefromhome to 1)
(set: $scrap to 0)
(set: $homeHP to it + 5)
You head out into the Scraplands
[[Head out|Head Further Out 1]]Smoke billows from your home. You approach your home cautiously. You see that it has been destroyed by raiders.
###Game Over
[[Start Again|Welcome]]
{
(if: $fuel <=0)[
(link: "Out of Gas")
(set: $homeHP to it - 1)
(goto: "Out Of Gas 1")
]
(if: $fuel >0)[
(link: "Head Out")[
(set: $fuel to it - 1)
(set: $distancefromhome to it + 1)
(set: $homeHP to it - 1)
(goto: "Head Further Out 1")
]
(link: "Head Out")[
(set: $fuel to it - 1)
(set: $distancefromhome to it + 1)
(set: $homeHP to it - 1)
]
]
}