Main      Site Guide    

Smash Tutorial

Sample Adventure: The Trainer

The "cave.sma" File



. There is a stack of junk in one corner of this dank cavern room and
c door = 2
	, an open
C
	, a closed
, door in the other.  Behind you a stream of daylight enters
	from the cavern opening.

c door = 2
	^ g Go through the door.
		p Treasure!  Yay, yay!  You found all the treasure
			in the world!  Yes!  Now you can go home, retire,
			and start that junkyard business you've always
			dreamed of owning!
		w
	* c Close the door.
		p Ok.
		s door = 1
C
	* o Open the door.
		c !door
			p It's locked!
		C
			p Ok.
			s door = 2
	c a:key
		c !door
			* un Unlock the door.
				p Ok.  The door is now unlocked.
				s door = 1
		C
			* lo Lock the door.
				p Ok.  The door is now locked.
				s door = 0

^ l Leave the cavern.
	c d:sword
		p After bribing that kobold to let you in?  You should at least
			do something to make this trip worth your while.
	C
		g kobold

* rum Rummage through the junk.
	s rummaged + 1
	c rummaged = 1
		p You search through the junk but find nothing of interest.
			Maybe if you looked harder....
	C rummaged = 2
		p You found a sword hidden at the bottom of the pile!
		a sword
	C
		p You search through the junk but find nothing more of
			interest.

* hit Hit your head against the cave wall really hard.
	p Ouch!  Well, that's the end of that.  You hit your head so hard,
		you died right there on the spot.
	l


Back to the Smash Tutorial Sample Adventure: The Trainer.
Back to the Smash Tutorial.