Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<set $loaded to 1>><<set $inventory to ["gun"]>>You pick up a gun.
Walther PPK <<print $loaded>> | <<print $inventory.count("bullet")>>
[[Pick up a bullet]]
[[Pick up 5 bullets]]
[[Reload the gun]]
[[Fire the gun]]<<set $inventory.push("bullet")>>You pick up a bullet.
Walther PPK <<print $loaded>> | <<print $inventory.count("bullet")>>
[[Pick up a bullet]]
[[Pick up 5 bullets]]
[[Reload the gun]]
[[Fire the gun]]<<set $inventory.push("bullet", "bullet", "bullet", "bullet", "bullet")>>You pick up 5 bullets.
Walther PPK <<print $loaded>> | <<print $inventory.count("bullet")>>
[[Pick up a bullet]]
[[Pick up 5 bullets]]
[[Reload the gun]]
[[Fire the gun]]<<if $loaded is 7>>You can't load any more bullets<<elseif ($loaded + $inventory.count("bullet")) lte 7>><<set $loaded to ($loaded + $inventory.count("bullet"))>><<set $inventory.delete("bullet")>>You load the gun<<elseif $inventory.count("bullet") is 0>>You have no more bullets<<else>><<for $loaded lt 7>><<set $loaded to $loaded + 1>><<set $inventory.deleteAt($inventory.indexOf("bullet"))>><</for>>You load the gun<<endif>>
Walther PPK <<print $loaded>> | <<print $inventory.count("bullet")>>
[[Pick up a bullet]]
[[Pick up 5 bullets]]
[[Reload the gun]]
[[Fire the gun]]<<if $loaded is 0>>The gun clicks<<else>><<set $loaded to $loaded - 1>><<print either("You hit the target, bullseye", "Critical hit!", "The bullet hits the target with a thud", "The bullet misses the target")>><<endif>>
Walther PPK <<print $loaded>> | <<print $inventory.count("bullet")>>
[[Pick up a bullet]]
[[Pick up 5 bullets]]
[[Reload the gun]]
[[Fire the gun]]There's a handgun lying on the table next to the firing range.
[[Pick up the gun.|Gun]]