cyoa{ regiondef{

// Army Surplus

0 value army-1
0 value army-2
0 value army-3
0 value army-4
0 value army-5
0 value army-6
0 value army-7

cyoa-choice: trade-army-1
	($ Thegroup .. " drops some food into the dumpster slot and a grenade comes out. This could cause a lot of damage!
	" .. "Wait, was the pin still on?" pbold $) cyoa-text! 3 500 tone
	1 WEAPON_GRENADE trunk.weapon+ -4 trunk-food+ picon ' army-1 ++
;

cyoa-choice: trade-army-2
	($ Thegroup .. " drops some food into the dumpster and a bunch of grenades plop out, one at a time. These can come in handy!
	" .. "Please don't drop any of those back into here." pbold $) cyoa-text! 3 500 tone
	3 WEAPON_GRENADE trunk.weapon+ -12 trunk-food+ picon ' army-2 ++
;

cyoa-choice: trade-army-3
	($ Thegroup .. " drops a lot of food into the dumpster. Someone pushes an uzi back out! It can spray out bullets at an incredible speed! Watch out, even a skilled shooter will have trouble with the recoil.
	" .. "Have fun! Also please go away." pbold $) cyoa-text! 3 500 tone
	1 WEAPON_UZI trunk.weapon+ -15 trunk-food+ picon ' army-3 ++
;

cyoa-choice: trade-army-4
	($ Thegroup .. " feeds a very large amount of food into the dumpster. There's a pause, then someone pushes an assault rifle out! This could really help the trip!
	" .. "Thanks for all the food! Good luck out there!" pbold $) cyoa-text! goodfx
	1 WEAPON_AK47 trunk.weapon+ -25 trunk-food+ picon ' army-4 ++
;

cyoa-choice: trade-army-5
	($ Thegroup .. " feeds a very large amount of food into the slot. There's a pause, then someone in the dumpster starts pushing a dozen grenades back through.
	" .. "Be really careful with these!" pbold $) cyoa-text! goodfx
	12 WEAPON_GRENADE trunk.weapon+ -40 trunk-food+ picon ' army-5 ++
;

cyoa-choice: trade-army-6
	($ Thegroup .. " feeds a massive amount of food into the slot. Someone on the other side strains to push a flamethrower out of the dumpster.
	" .. "Light them up!" pbold $) cyoa-text! goodfx
	1 WEAPON_FLAMETHROWER trunk.weapon+ -60 trunk-food+ picon ' army-6 ++
;

cyoa-choice: trade-army-7
	($ Thegroup .. " slowly feeds a car-load of food into the dumpster. Scraping noises are heard and then a minigun barrel is pushed through from the darkness. The frame of the slot is warped due to the size of the minigun as it's jammed through.
	" .. "Thanks so much! I can hide in here for months now!" pbold $) cyoa-text! goodfx
	1 WEAPON_MINIGUN trunk.weapon+ -75 trunk-food+ picon ' army-7 ++
;

cyoa: trade-army
	"Army Surplus Fortress" cyoa-title!
	($ Thegroup .. " finds a dumpster. It's locked tight, with a slot in the side. There are weapon names and prices scrawled near the hole.
	" .. "Just drop the food in here!" pbold .. " says a tiny voice in the dumpster." $) cyoa-text! 3 500 tone foodamt
	choice( "Leave it alone" )choice
	trunk-food 5 < if
		($ "This isn't enough food for the dumpster person!" $) +crtext badfx // clear-cyoa
	else
		trunk-food 74 > army-7 1 < and if
			choice( "Minigun for 75 food" )choice: trade-army-7
		then
		trunk-food 59 > army-6 1 < and if
			choice( "Flamethrower for 60 food" )choice: trade-army-6
		then
		trunk-food 39 > army-5 1 < and if
			choice( "12 grenades for 40 food" )choice: trade-army-5
		then
		trunk-food 24 > army-4 1 < and if
			choice( "Assault Rifle for 25 food" )choice: trade-army-4
		then
		trunk-food 14 > army-3 1 < and if
			choice( "Uzi for 15 food" )choice: trade-army-3
		then
		trunk-food 11 > army-2 1 < and if
			choice( "3 grenades for 12 food" )choice: trade-army-2
		then
		trunk-food 3 > army-1 1 < and if
			choice( "1 grenade for 4 food" )choice: trade-army-1
		then
	then
;

// Shotgun seller

0 value shotgun-1
0 value shotgun-2
0 value shotgun-3
0 value shotgun-4

cyoa-choice: trade-shotgun-coolit
	cpet? if
		($ cname .. " farts right in front of the shotgun guy." $)
	else
		($ cname .. " tells the shotgun guy to " .. "COOL IT." pbold $)
	then cyoa-text!
	cool-it-7 if
		($ "This causes him some sort of emotional crisis.
		" .. "You're right! What am I even doing with my life?!" pbold .. "
		He gives " .. cname .. " his " .. "prized autoshotgun." rbold $) +crtext goodfx
		1 WEAPON_AUTOSHOT trunk.weapon+
		// used to also give a shotgun, a rifled slug shotgun, and the BIG DAWG. Too much. Busting down the value of mega coolit to about 40-50 food or so instead of like 150.
		// Busted it down even further, to just giving an autoshotgun.
		cooled-it clear-cyoa
	else cool-it++
		($ "The peddler is really annoyed by this.
		" .. "I'm trying to make a living here!" pbold .. "
		He then starts blasting his shotguns into the air menacingly, forcing " .. thegroup .. " to flee!" $) badfx +crtext quitmission
	then attitudeREV witsREV
;

cyoa-choice: trade-shotgun-4
	($ Thegroup .. " buys the " .. "BIG DAWG" rbold .. ". It's a one of a kind custom shotgun! Every shot is a massive blast of zombie splattering." $) cyoa-text! goodfx ' shotgun-4 ++
	1 WEAPON_DAWG trunk.weapon+ -40 trunk-food+ picon charm-shotgun-shell
;

cyoa-choice: trade-shotgun-3
	($ Thegroup .. " buys a rifled slug shotgun. It fires a heavy, solid slug instead of buckshot. A skilled shooter could destroy a solid line of zombies with each shot!" $) cyoa-text! goodfx ' shotgun-3 ++
	1 WEAPON_SLUG trunk.weapon+ -25 trunk-food+ picon charm-shotgun-shell
;

cyoa-choice: trade-shotgun-2
	($ Thegroup .. " buys an automatic shotgun. This weapon fires way faster than a normal shotgun, though the power of a single shot is a little weaker." $) cyoa-text! goodfx ' shotgun-2 ++
	1 WEAPON_AUTOSHOT trunk.weapon+ -30 trunk-food+ picon charm-shotgun-shell
;

cyoa-choice: trade-shotgun-1
	($ Thegroup .. " buys a shotgun. The peddler throws in some shells for free!" $) cyoa-text! goodfx
	1 WEAPON_SHOTGUN trunk.weapon+ -10 trunk-food+ 15 trunk-shotgun-shell+ picon charmhalf-shotgun-shell
	 ' shotgun-1 ++
;

cyoa: trade-shotgun
	"Shotgun Peddler" cyoa-title!
	($ "This man is carrying several shotguns, most of them lashed to his back. He is booming out a simple yet effective sales pitch:
	" .. "SHOTGUNS FOR SALE! SHOTGUNS FOR SAAAALE!" pbold $) cyoa-text! 3 500 tone foodamt
	choice( "Leave him" )choice
	most-grating if 
		charchoice( " tells him to COOL IT" fcoolit )choice: trade-shotgun-coolit
	then
	trunk-food 5 < if
		($ "This isn't enough food! Out of pity, he gives " .. thegroup .. " some free shotgun shells." $) +crtext goodfx 5 trunk-shotgun-shell+ clear-cyoa
	else
		trunk-food 39 > shotgun-4 1 < and if
			choice( "BIG DAWG for 40 food" )choice: trade-shotgun-4
		then
		trunk-food 24 > shotgun-3 1 < and if
			choice( "Slug Shotgun for 25 food" )choice: trade-shotgun-3
		then
		trunk-food 29 > shotgun-2 1 < and if
			choice( "Autoshotty for 30 food" )choice: trade-shotgun-2
		then
		(* trunk-food 14 > if
			choice( "75 shells for 15 food" )choice: trade-shotgun-shell-15
		then *)
		trunk-food 9 > shotgun-1 3 < and if
			choice( "Shotgun for 10 food" )choice: trade-shotgun-1
		then
		(* trunk-food 9 > if
			choice( "50 shells for 10 food" )choice: trade-shotgun-shell-10
		then
		trunk-food 4 > if
			choice( "25 shells for 5 food" )choice: trade-shotgun-shell-5
		then *)

	then
;

// Rifle Collector

0 value rifle-1
0 value rifle-2
0 value rifle-3
0 value rifle-4

cyoa-choice: trade-rifle-coolit
	cpet? if
		($ cname .. " takes a look at the collection and then rolls " .. chis .. " eyes." $)
	else
		($ cname .. " tells the friendly woman to " .. "COOL IT." pbold $)
	then cyoa-text!
	cool-it-7 if
		($ "She nods in agreement.
		" .. "Yeah, I think my collection is getting too big. Mind just taking this off my hands?" pbold .. "
		The collector gives " .. cname .. " an " .. "assault rifle." rbold $) goodfx
		1 WEAPON_AK47 trunk.weapon+ cooled-it clear-cyoa
	else cool-it++
		($ "The rifle collector seems hurt by this.
		" .. "I... I am cool..." pbold .. "
		She tells " .. thegroup .. " to leave the trading camp before she brings out her minigun." $) badfx quitmission
	then +crtext attitudeREV witsREV
;

cyoa-choice: trade-rifle-4
	($ Thegroup .. " buys the " .. "MINIGUN" rbold .. ". The collector seems glad to sell it. 
	" .. "Well, technically it's not a rifle! And I couldn't figure out how to hang it on my wall, so..." pbold $) cyoa-text! goodfx
	1 WEAPON_MINIGUN trunk.weapon+ -65 trunk-food+ picon charm-rifle-shell ' rifle-4 ++
;

cyoa-choice: trade-rifle-3
	($ Thegroup .. " buys a high powered hunting rifle. The collector gives you a great price on it, as she already has several.
	" .. "The great thing about hunting rifles is that one shot can splat a lot of zombies. My record is 7 in one shot!" pbold $) cyoa-text! goodfx
	1 WEAPON_HUNTING trunk.weapon+ -15 trunk-food+ picon charm-rifle-shell ' rifle-3 ++
;

cyoa-choice: trade-rifle-2
	($ Thegroup .. " buys an assault rifle. Nearly as powerful as a cowboy rifle per shot, and it fires much faster.
	" .. "I prefer the single shot rifles, personally. Automatics use up too much ammo and don't pierce as well." pbold $) cyoa-text! goodfx
	1 WEAPON_AK47 trunk.weapon+ -25 trunk-food+ picon charm-rifle-shell ' rifle-2 ++
;

cyoa-choice: trade-rifle-1
	($ Thegroup .. " buys a cowboy rifle. The collector throws in some ammo for free, along with a second rifle!
	" .. "Cowboy rifles are great for beginners. Easy to handle, fun to shoot. I find tons of these, so take two!" pbold $) cyoa-text! goodfx
	2 WEAPON_RIFLE trunk.weapon+ -10 trunk-food+ 20 trunk-rifle-shell+ picon charmhalf-rifle-shell ' rifle-1 ++
;

cyoa: trade-rifle
	"Rifle Collector" cyoa-title!
	($ Thegroup .. " talks to a meek looking woman. She invites you to check out her collection of rifles.
	" .. "I've found so many that I'm looking to sell some!" pbold $) cyoa-text! 3 500 tone foodamt
	choice( "Leave her" )choice
	most-grating if 
		charchoice( " tells her to COOL IT" fcoolit )choice: trade-rifle-coolit
	then
	trunk-food 10 < if
		($ "This isn't enough food to buy any! To be friendly, the collector gives " .. thegroup .. " some free rifle ammo." $) +crtext goodfx 10 trunk-rifle-shell+ clear-cyoa
	else
		trunk-food 64 > rifle-4 1 < and if
			choice( "Minigun for 65 food" )choice: trade-rifle-4
		then
		trunk-food 24 > rifle-2 1 < and if
			choice( "Assault Rifle for 25 food" )choice: trade-rifle-2
		then
		trunk-food 14 > rifle-3 1 < and if
			choice( "Hunting Rifle for 15 food" )choice: trade-rifle-3
		then
		(* trunk-food 14 > if
			choice( "90 rifle ammo for 15 food" )choice: trade-rifle-shell-15
		then *)
		trunk-food 9 > rifle-1 3 < and if
			choice( "Cowboy Rifle for 10 food" )choice: trade-rifle-1
		then
		(* trunk-food 9 > if
			choice( "60 rifle ammo for 10 food" )choice: trade-rifle-shell-10
		then
		trunk-food 4 > if
			choice( "30 rifle ammo for 5 food" )choice: trade-rifle-shell-5
		then *)
	then
;

// Weapon Fanatic

0 value fanatic-1
0 value fanatic-2
0 value fanatic-3
0 value fanatic-4
0 value fanatic-5
0 value fanatic-6

cyoa-choice: trade-fanatic-coolit
	cpet? if
		($ cname .. " says the phrase " .. "COOL IT" pbold .. " by farting! Amazing!" $)
	else
		($ cname .. " tells the fanatical woman to " .. "COOL IT." pbold $)
	then cyoa-text!
	cool-it-7 if
		($ "She's delighted by this, somehow.
		" .. "WHOA!	WHOAAAAAAA!" rbold .. "
		The trader gives " .. cname .. " 7 molotovs and a " .. "free chainsaw." rbold $) goodfx +crtext
		1 WEAPON_CHAINSAW trunk.weapon+ 7 WEAPON_MOLOTOV trunk.weapon+ cooled-it clear-cyoa
	else cool-it++
		($ "The weapons trader is infuriated by this.
		" .. "COOL IT? COOL IT??! LOSERS COOL IT!!
		" rbold .. Thegroup .. " realizes that this was a pretty bad idea! The trader revs up her chainsaw!" $) +crtext bitefx rob-megafail trade-flee
	then attitudeREV witsREV
;

cyoa-choice: trade-fanatic-1
	($ Thegroup .. " buys a couple of molotov cocktails.
	" .. "A little fire can go a long way!" rbold $) cyoa-text! goodfx
	2 WEAPON_MOLOTOV trunk.weapon+ -5 trunk-food+ picon charm-gas ' fanatic-1 ++
;
cyoa-choice: trade-fanatic-2
	($ Thegroup .. " buys five molotov cocktails.
	" .. "When in doubt, burn it all down!!" rbold $) cyoa-text! goodfx
	5 WEAPON_MOLOTOV trunk.weapon+ -10 trunk-food+ picon charm-gas ' fanatic-2 ++
;
cyoa-choice: trade-fanatic-4
	($ Thegroup .. " buys eight molotov cocktails.
	" .. "Don't use them all in one place!" rbold $) cyoa-text! goodfx
	8 WEAPON_MOLOTOV trunk.weapon+ -15 trunk-food+ picon charm-gas ' fanatic-4 ++
;
cyoa-choice: trade-fanatic-3
	($ Thegroup .. " buys a parking meter? It's very heavy.
	" .. "We ripped this out of the ground! That's how we can pass the savings on to you!" rbold $) cyoa-text! goodfx
	1 WEAPON_PARKING trunk.weapon+ -10 trunk-food+ picon ' fanatic-3 ++
;
cyoa-choice: trade-fanatic-5
	($ Thegroup .. " buys a chainsaw! It converts spare gas into zombie destruction.
	" .. "Hahaha! PERFECT! Rip them all apart!" rbold $) cyoa-text! goodfx
	1 WEAPON_CHAINSAW trunk.weapon+ -20 trunk-food+ picon charm-gas ' fanatic-5 ++
;
cyoa-choice: trade-fanatic-6
	($ Thegroup .. " buys a flamethrower! Try not to shoot your team members with it.
	" .. "Aaaaaaa! Looks GREAT on you!!" rbold $) cyoa-text! goodfx
	1 WEAPON_FLAMETHROWER trunk.weapon+ -50 trunk-food+ picon charm-gas ' fanatic-6 ++
;

// chainsaw 40 - flamethrower 100 - molotovs 2 5 10 for 5 10 20 - 15 parking meter
cyoa: trade-fanatic
	"Carnage Weapons" cyoa-title!
	($ "A particularly intense looking woman offers to sell you a spare weapon. " .. "I only carry the BEST stuff!
	" rbold .. "She starts her chainsaw and revs it a few times to emphasize this." $) cyoa-text! 3 500 tone foodamt
	choice( "Leave for now" )choice
	most-grating if 
		charchoice( " tells her to COOL IT" fcoolit )choice: trade-fanatic-coolit
	then
	trunk-food 5 < if
		($ "This isn't enough food to buy anything! The trader gives a free molotov to " .. thegroup .. ", just to promote zombie destruction." $) +crtext goodfx 1 WEAPON_MOLOTOV trunk.weapon+ clear-cyoa
	else
		trunk-food 49 > fanatic-6 1 < and if
			choice( "Flamethrower for 50 food" )choice: trade-fanatic-6
		then
		trunk-food 19 > fanatic-5 1 < and if
			choice( "Chainsaw for 20 food" )choice: trade-fanatic-5
		then
		trunk-food 14 > fanatic-4 1 < and if
			choice( "8 molotovs for 15 food" )choice: trade-fanatic-4
		then
		trunk-food 9 > fanatic-3 1 < and if
			choice( "Parking meter for 10 food" )choice: trade-fanatic-3
		then
		trunk-food 9 > fanatic-2 1 < and if
			choice( "5 molotovs for 10 food" )choice: trade-fanatic-2
		then
		trunk-food 4 > fanatic-1 1 < and if
			choice( "2 molotovs for 5 food" )choice: trade-fanatic-1
		then
	then
;

// Blade Master

0 value blade-claymore
0 value blade-knight
0 value blade-machete
0 value blade-katana

cyoa-choice: trade-blade-rob 
	
		($ "The Blade Master manages to fight off " .. thegroup .. " using his considerable sword knowledge and mall katanas. " .. cname .. " nabs a sturdy machete." $) cyoa-text! bitefx rob-fail 1 WEAPON_MACHETE2 trunk.weapon+
		aholeREV trade-flee
;
cyoa-choice: trade-blade-coolit
	cpet? if
		($ cname .. " starts gnawing on one of the Blade Master's scabbards, in spite." $)
	else
		($ cname .. " tells the Blade Master to " .. "COOL IT." pbold $)
	then cyoa-text!
	cool-it-7 if
		($ "He becomes filled with self-doubt.
		" .. "My life is a lie! I'm going to give up this sword stuff and start collecting flamethrowers." pbold .. "
		The former Blade Master gives " .. cname .. " one of his best weapons, a " .. "Knight's Sword." rbold $) goodfx
		1 WEAPON_KNIGHT trunk.weapon+ cooled-it clear-cyoa
	else cool-it++
		($ "The Blade Master ignores this.
		He starts talking about how cool swords are and never stops. " .. Thegroup .. " is forced to sneak out of the trading camp during his endless raving." $) badfx quitmission
	then +crtext attitudeREV witsREV
;

cyoa-choice: trade-blade-4
	($ Thegroup .. " buys the " .. "MIGHTY CLAYMORE" rbold .. ". The claymore is slow and hard to handle, but extremely powerful. It can sometimes chop 4 zombies at once!" $) cyoa-text! goodfx
	1 WEAPON_CLAYMORE trunk.weapon+ -35 trunk-food+ someicon ' blade-claymore ++
;

cyoa-choice: trade-blade-3
	($ Thegroup .. " buys the type of sword a knight in the middle ages would use. This will make a great weapon! It can easily hit two zombies in one swing." $) cyoa-text! goodfx
	1 WEAPON_KNIGHT trunk.weapon+ -25 trunk-food+ someicon ' blade-knight ++
;

cyoa-choice: trade-blade-2
	($ Thegroup .. " buys a very strong yet light machete. It's sturdy enough to chop down trees with, so it won't break with 'road trip usage'." $) cyoa-text! goodfx
	1 WEAPON_MACHETE2 trunk.weapon+ -15 trunk-food+ someicon ' blade-machete ++
;

cyoa-choice: trade-blade-1
	($ Thegroup .. " buys a katana of the type you'd get at a mall. It looks like it might break at any moment. What a rip off." $) cyoa-text! goodfx
	1 WEAPON_OTAKU trunk.weapon+ -5 trunk-food+ someicon ' blade-katana ++
;

cyoa: trade-blade
	"Blade Master" cyoa-title!
	($ Thegroup .. " meets a man who is carrying many swords. They clank around as he moves.
	" .. "One day I'll make the finest zombie slicing sword ever seen! I just have to figure out how to make swords first. I'll sell you some I found!" pbold $) cyoa-text! 3 500 tone foodamt
	choice( "Leave him" )choice
	most-ahole if
		charchoice( " robs the trader" )choice: trade-blade-rob
	then
	most-grating if 
		charchoice( " tells him to COOL IT" fcoolit )choice: trade-blade-coolit
	then
	trunk-food 5 < if
		($ "This isn't enough food to buy anything! As consolation the trader gives " .. thegroup .. " a butcher's cleaver." $) +crtext goodfx 1 WEAPON_CLEAVER trunk.weapon+ clear-cyoa
	else
		trunk-food 34 > blade-claymore 1 < and if
			choice( "Mighty Claymore for 35 food" )choice: trade-blade-4
		then
		trunk-food 24 > blade-knight 1 < and if
			choice( "Knight's Sword for 25 food" )choice: trade-blade-3
		then
		trunk-food 14 > blade-machete 1 < and if
			choice( "Sturdy Machete for 15 food" )choice: trade-blade-2
		then
		trunk-food 4 > blade-katana 3 < and if
			choice( "Cheap Katana for 5 food" )choice: trade-blade-1
		then
	then
;

// Axe Merchant

0 value axe-medieval
0 value axe-guitar
0 value axe-fireaxe
0 value axe-hatchet

cyoa-choice: trade-axe-rob 
	40 %chance if
		($ cname .. " robs the axe merchant, who stands there without responding at all. " .. cname .. " takes the medieval axe but gets creeped out. " $) cyoa-text! 0.4 1100 tone
		notsolo if
			($ Theothersare .. " also creeped out." $) +text
		then morale3-all 1 WEAPON_MEDIEVAL trunk.weapon+
	else
		($ "The axe merchant moves way too fast. In a flash, it is holding a huge medieval axe in one robed hand. " .. Thegroup .. " is far too terrified to continue the robbery attempt." $) cyoa-text! morale3-all
	then aholeREV badfx trade-flee
;
cyoa-choice: trade-axe-coolit
	cpet? if
		($ cname .. " rips an especially loud fart." $)
	else
		($ cname .. " tells the axe merchant to " .. "COOL IT." pbold $)
	then cyoa-text!
	cool-it++
	($ "The axe merchant doesn't seem to react.
	" .. "....." rbold .. "
	" .. cname .. " has no idea if " .. che .. " was heard or not." $) 
	+crtext attitudeREV witsREV 0.3 600 tone
	($ Thegroup .. " feels so uneasy that " .. gthey .. " leave" .. g1s .. " the trading camp as soon as possible." $) +crtext quitmission badfx
;

cyoa-choice: trade-axe-4
	($ Thegroup .. " buys the " .. "MEDIEVAL AXE" rbold .. ". This thing is really heavy and slow. It can often cleave 3 zombies at once! Give it to someone strong and fit." $) cyoa-text! goodfx
	1 WEAPON_MEDIEVAL trunk.weapon+ -25 trunk-food+ picon ' axe-medieval ++
;

cyoa-choice: trade-axe-3
	($ Thegroup .. " buys an axe-shaped guitar. This would make a stylish weapon." $) cyoa-text! goodfx
	1 WEAPON_GUITAR trunk.weapon+ -10 trunk-food+ picon ' axe-guitar ++
;

cyoa-choice: trade-axe-2
	($ Thegroup .. " buys a fire axe. It's called this because it was what firefighters used to chop up zombies." $) cyoa-text! goodfx
	1 WEAPON_FIRE trunk.weapon+ -6 trunk-food+ picon ' axe-fireaxe ++
;

cyoa-choice: trade-axe-1
	($ Thegroup .. " buys a hatchet. It's the tiniest little axe." $) cyoa-text! goodfx
	1 WEAPON_HATCHET trunk.weapon+ -3 trunk-food+ picon ' axe-hatchet ++
;

cyoa: trade-axe
	"Axe Merchant" cyoa-title!
	($ Thegroup .. " meets a strange and menacing figure. He or she is wearing a mask and a trenchcoat.
	" .. "I sell axes... Just axes..." rbold $) cyoa-text! foodamt
	choice( "Leave it be" )choice
	most-ahole if
		charchoice( " robs the merchant" )choice: trade-axe-rob
	then
	most-grating if 
		charchoice( " tells it to COOL IT" fcoolit )choice: trade-axe-coolit
	then
	trunk-food 3 < if
		($ "This isn't enough food to buy anything! As consolation the merchant gives " .. thegroup .. " a hockey stick, which I guess is axe shaped." $) +crtext goodfx 1 WEAPON_HOCKEY trunk.weapon+ clear-cyoa
	else 0.3 600 tone
		trunk-food 24 > axe-medieval 1 < and if
			choice( "Medieval Axe for 25 food" )choice: trade-axe-4
		then
		trunk-food 9 > axe-guitar 1 < and if
			choice( "Electric Guitar for 10 food" )choice: trade-axe-3
		then
		trunk-food 5 > axe-fireaxe 2 < and if
			choice( "Fire Axe for 6 food" )choice: trade-axe-2
		then
		trunk-food 2 > axe-hatchet 2 < and if
			choice( "Hatchet for 3 food" )choice: trade-axe-1
		then
	then
;

// General Firearms, with ability to unlock a secret super shop

0 value firearms-flame
0 value firearms-assault
0 value firearms-autoshot
0 value firearms-uzi
0 value firearms-goodstuff
0 value firearms-shotgun
0 value firearms-cowboy
0 value firearms-revolver

cyoa-choice: trade-firearms-80
	($ Thegroup .. " buys a flamethrower. The trader doesn't say where they got it. Try not to set yourself on fire with this!" $) cyoa-text! 3 500 tone
	1 WEAPON_FLAMETHROWER trunk.weapon+ -40 trunk-food+ charm-gas ' firearms-flame ++ ' firearms-goodstuff ++
;

cyoa-choice: trade-firearms-40
	($ Thegroup .. " buys an automatic shotgun. NOW we're talking! You're set until you run out of shells for it." $) cyoa-text! 3 500 tone
	1 WEAPON_AUTOSHOT trunk.weapon+ -25 trunk-food+ charm-shotgun-shell ' firearms-autoshot ++ ' firearms-goodstuff ++
;

cyoa-choice: trade-firearms-30
	($ Thegroup .. " buys an assault rifle. Whoever uses this needs a lot of shooting skill to handle it right!" $) cyoa-text! 3 500 tone
	1 WEAPON_AK47 trunk.weapon+ -20 trunk-food+ charm-rifle-shell ' firearms-assault ++ ' firearms-goodstuff ++
;

cyoa-choice: trade-firearms-20
	($ Thegroup .. " buys an uzi. Great for spraying bullets EVERYWHERE. Even someone great with guns will have problems handling this." $) cyoa-text! 3 500 tone
	1 WEAPON_UZI trunk.weapon+ -12 trunk-food+ charm-bullet ' firearms-uzi ++ ' firearms-goodstuff ++
;

cyoa: trade-firearms-mega 

	($ "The trader decides to show " .. thegroup .. " THE GOOD STUFF." $) cyoa-text! goodfx foodamt
	choice( "Leave for now" )choice
	trunk-food 39 > firearms-flame 1 < and if
		choice( "Flamethrower for 40 food" )choice: trade-firearms-80
	then
	trunk-food 24 > firearms-autoshot 1 < and if
		choice( "Auto-Shotgun for 25 food" )choice: trade-firearms-40
	then
	trunk-food 19 > firearms-assault 1 < and if
		choice( "Assault Rifle for 20 food" )choice: trade-firearms-30
	then
	trunk-food 11 > firearms-uzi 1 < and if
		choice( "Uzi for 12 food" )choice: trade-firearms-20
	then
;

cyoa-choice: trade-firearms-15
	($ Thegroup .. " buys a shotgun. What a classic choice! This weapon is good in the hands of nearly anyone." $) cyoa-text! 3 500 tone
	1 WEAPON_SHOTGUN trunk.weapon+ -5 trunk-food+ charmhalf-shotgun-shell ' firearms-shotgun ++
;

cyoa-choice: trade-firearms-10
	($ Thegroup .. " buys a cowboy rifle. Just like the cowboys used. Someone with good shooting skill could really make this work." $) cyoa-text! 3 500 tone
	1 WEAPON_RIFLE trunk.weapon+ -5 trunk-food+ charmhalf-rifle-shell ' firearms-cowboy ++
;

cyoa-choice: trade-firearms-5
	($ Thegroup .. " buys a revolver. In the right hands, this could let someone using cheap bullets do a lot of zombie damage." $) cyoa-text! 3 500 tone
	1 WEAPON_DOLT trunk.weapon+ -5 trunk-food+ charmhalf-bullet ' firearms-revolver ++
;

cyoa-choice: trade-firearms-1
	($ Thegroup .. " buys a pistol. It was very cheap, but this is the same type one can find anywhere." $) cyoa-text! 3 500 tone
	1 WEAPON_PISTOL trunk.weapon+ -1 trunk-food+
;

cyoa: trade-firearms
	"Mobile Gun Show" cyoa-title! picon
	($ Thegroup .. " finds a man selling a bunch of firearms. He's holding a minigun that has both a scope, a laser sight, and a flashlight attached to it. 
	However, his selection seems like pretty common stuff." $) cyoa-text! 3 500 tone foodamt
	choice( "Leave for now" )choice
	shootest-pass trunk-food 11 > firearms-goodstuff 4 < and and if
		shootest charchoice( " demands to see the good stuff" )choice: trade-firearms-mega
	then
	trunk-food 1 < if
		($ "Sadly, this isn't enough food for trading." $) +cr +text
	else
		trunk-food 4 > firearms-shotgun 1 < and if
			choice( "Shotgun for 5 food" )choice: trade-firearms-15
		then
		trunk-food 4 > firearms-cowboy 1 < and if
			choice( "Cowboy Rifle for 5 food" )choice: trade-firearms-10
		then
		trunk-food 4 > firearms-revolver 1 < and if
			choice( "Revolver for 5 food" )choice: trade-firearms-5
		then
		choice( "Pistol for 1 food" )choice: trade-firearms-1

	then
;

// Pipebomb dude

0 value pipebomb-8
0 value pipebomb-5
0 value pipebomb-2

cyoa-choice: trade-pipebomb-rob 
	($ "At the first glimmer of trouble, the trader opens his coat to reveal that he's covered in pipebombs. In a quick motion, he lights a fuse on one of them.
	" .. cname .. " is right next to him, and has just barely enough time to deeply regret the whole robbery thing." $) cyoa-text! bitefx
		rob-megafail aholeREV trade-flee
;
cyoa-choice: trade-pipebomb-coolit
	cpet? if
		($ cname .. " farts really loud at the pipebomb guy." $)
	else
		($ cname .. " tells the pipebomb guy to " .. "COOL IT." pbold $)
	then cyoa-text!
	cool-it-7 if
		($ "He interprets this as " .. cname .. " playing hardball with the trade.
		" .. "NO! TAKE MY BOMBS! FREE SAMPLES!" pbold .. "
		He gives " .. chim .. " 20 pipebombs! That's a massive amount!" $) goodfx
		20 WEAPON_PIPEBOMB trunk.weapon+ cooled-it clear-cyoa
	else cool-it++
		($ "YOU COOL IT! YOU COOL IT!!" pbold .. "
		The mood gets pretty tense with the guy selling explosives, so " .. thegroup .. " has to leave the trader camp." $) badfx quitmission
	then +crtext attitudeREV witsREV
;
: charm-pipebomb
	most-charming if
		choosechar ($ " The trader gives " .. cname .. " an extra pipebomb in an extremely awkward attempt at either flirting or friendliness. It's hard to say for sure." $) +cr +text 1 WEAPON_PIPEBOMB trunk.weapon+ cicon
	then
;
cyoa-choice: trade-pipebomb-20
	($ Thegroup .. " buys 8 pipebombs." $) cyoa-text! 3 500 tone
	8 WEAPON_PIPEBOMB trunk.weapon+ -15 trunk-food+ picon charm-pipebomb ' pipebomb-8 ++
;

cyoa-choice: trade-pipebomb-10
	($ Thegroup .. " buys 5 pipebombs." $) cyoa-text! 3 500 tone
	5 WEAPON_PIPEBOMB trunk.weapon+ -10 trunk-food+ picon charm-pipebomb ' pipebomb-5 ++
;

cyoa-choice: trade-pipebomb-5
	($ Thegroup .. " buys 2 pipebombs." $) cyoa-text! 3 500 tone
	2 WEAPON_PIPEBOMB trunk.weapon+ -5 trunk-food+  picon 50 %chance if charm-pipebomb then ' pipebomb-2 ++
;

cyoa: trade-pipebomb
	"Pipebomb Supplier" cyoa-title!
	($ Thegroup .. " finds a twitchy man selling homemade bombs. He's wearing a bulky coat with lumps bulging out from underneath.
	" .. "BUY MY BOMBS!" pbold $) cyoa-text! 3 500 tone foodamt
	choice( "Back away slowly" )choice
	most-ahole if
		charchoice( " robs the trader" )choice: trade-pipebomb-rob
	then
	most-grating if 
		charchoice( " tells him to COOL IT" fcoolit )choice: trade-pipebomb-coolit
	then
	trunk-food 5 < if
		($ "Sadly, this isn't enough food for trading, though he does give away a free pipebomb!" $) +cr +text
		1 WEAPON_PIPEBOMB trunk.weapon+ clear-cyoa
	else
		trunk-food 14 > pipebomb-8 1 < and if
			choice( "8 pipebombs for 15 food" )choice: trade-pipebomb-20
		then
		trunk-food 9 > pipebomb-5 1 < and if
			choice( "5 pipebombs for 10 food" )choice: trade-pipebomb-10
		then
		trunk-food 4 > pipebomb-2 1 < and if
			choice( "2 pipebombs for 5 food" )choice: trade-pipebomb-5
		then
	then
;

// Anime merchant

0 value anime-1
0 value anime-2
0 value anime-3
0 value anime-4

cyoa-choice: trade-anime-rob 
	70 %chance if
		($ cname .. " robs the trader of some swords and shuriken, but smashes some perfectly usable animes in the process. " $) cyoa-text! goodfx
		notsolo if
			($ Theothersare .. " dragged into it." $) +text
		then
		5 WEAPON_SHURIKEN trunk.weapon+ 4 WEAPON_OTAKU trunk.weapon+ rob-guilt
	else
		($ Thegroup .. " is foiled when the trader runs in his vehicle, snaps the truck's armored shutters closed, and then drives away." $) cyoa-text! badfx morale--all
	then aholeREV trade-flee
;
: charm-anime
	most-charming if
		choosechar ($ " The trader gives " .. cname .. " an extra katana.
		" .. "PROMOTIONAL OFFER, JUST FOR YOU! *WINK*" pbold $) 
		+cr +text 1 WEAPON_OTAKU trunk.weapon+ cicon
	then
;
cyoa-choice: trade-anime-20
	($ Thegroup .. " buys a gigantic throwing star.
	" .. "THIS IS THE OFFICIAL WINDSTAR USED IN THE LIVE-ACTION VERSION OF THE WINDSTAR ANIME!! EXCELLENT CHOICE!" pbold $) cyoa-text! 3 500 tone
	1 WEAPON_WINDSTAR trunk.weapon+ -15 trunk-food+ picon charm-anime ' anime-4 ++
;
: trade-anime-roll 
	dup .cwits+ if .morale-- else .morale3+ then 
;
cyoa-choice: trade-anime-10
	($ Thegroup .. " buys an anime figurine. It seems really expensive...
	" .. "I CAN TELL YOU HAVE EXQUISITE TASTES!" pbold $) cyoa-text! 3 500 tone
	' trade-anime-roll foreach-team-char -10 trunk-food+ picon charm-anime ' anime-3 ++
;

cyoa-choice: trade-anime-5
	($ Thegroup .. " buys 4 katanas.
	" .. "ENOUGH FOR A WHOLE GROUP! CUT THROUGH ANYTHING!" pbold $) cyoa-text! 3 500 tone
	4 WEAPON_OTAKU trunk.weapon+ -5 trunk-food+ picon charm-anime ' anime-2 ++
;

cyoa-choice: trade-anime-1
	($ Thegroup .. " buys 5 Shuriken.
	" .. "INCREDIBLE DEAL!" pbold $) cyoa-text! 3 500 tone
	5 WEAPON_SHURIKEN trunk.weapon+ -1 trunk-food+ picon ' anime-1 ++
;
cyoa-choice: trade-anime-coolit
	cpet? if
		($ cname .. " destroys some anime, as a protest against the very existence of anime. The anime trader gets the message." $)
	else
		($ cname .. " tells the anime trader to " .. "COOL IT. 
	ALSO, ANIME ISN'T REAL!" pbold $) then cyoa-text!
	cool-it++
		($ "There is no way that he could take this well.
		" .. "NO! YOU'RE WRONG! STOP IT! NOooooooo!" rbold .. "
		He enters the truck and then peels out in anger and confusion. The other traders are shocked!" $) badfx +crtext attitudeREV witsREV trade-flee
;
cyoa: trade-anime
	"The Last Anime Sale" cyoa-title!
	($ "This man is selling anime and anime accessories from a converted food truck.
	" .. "I AM DOING MY PART TO KEEP CIVILIZATION TOGETHER, ONE ANIME SALE AT A TIME!" pbold $) cyoa-text! 3 500 tone foodamt
	choice( "Buy NO anime" )choice
	most-ahole if
		charchoice( " robs the trader" )choice: trade-anime-rob
	then
	most-grating if 
		charchoice( " tells him to COOL IT" fcoolit )choice: trade-anime-coolit
	then
	trunk-food 1 < if
		($ "Sadly, this isn't enough food for anime, though he gives away a free shuriken as a souvenir." $) +cr +text
		1 WEAPON_SHURIKEN trunk.weapon+ clear-cyoa
	else
		trunk-food 14 > anime-4 1 < and if
			choice( "Windstar for 15 food" )choice: trade-anime-20
		then
		trunk-food 9 > anime-3 1 < and if
			choice( "Anime Figurine for 10 food" )choice: trade-anime-10
		then
		trunk-food 4 > anime-2 1 < and if
			choice( "4 Katanas for 5 food" )choice: trade-anime-5
		then
		anime-1 1 < if
			choice( "5 Shuriken for 1 food" )choice: trade-anime-1
		then
	then
;

} } 
