Need help with stuff... again..

In your adventures through the Town of ZZT, you have been captured by the evil Dungeon Guards. Not recognizing you as the great escape artist you are, the guards have thrown you in the Dungeons of ZZT.

Moderator: zamros

Locked
464
What can be said now?
Posts: 0
Joined: Tue Oct 21, 2003 8:41 pm

Need help with stuff... again..

Post by 464 »

I'm having a bit of trouble and it's getting me POed. I'm trying to do some crap like this:

@uhhuh
#end
:touch
'having troubles here'
#take gems 5 poorass
'I wanted extra crap here but I didn't want it to activiate it you were a 'poorass'
#extracrap
!extracrap
#end


I want to be able to continue the program when you have enough gems and not continue when you don't. I thought the program would stop at 'poorass' if you were a 'poorass' and go to :poorass. BUT I WAS WRONG.

I'd love any help.
453
What can be said now?
Posts: 0
Joined: Wed Jan 21, 2004 7:25 pm

Post by 453 »

straight from THE MAN himself:

Code: Select all

@Troll
#end

:touch
#if blocked w isin
A troll blocks your way over the bridge.

     "Grrr...  Pay for passage or forget
about the castle!"

!bribe;Bribe the troll...........10 Gems
#end

:bribe
#take gems 10 toopoor
#lock
"Now hurry on along..."
/i/n/i/n
/i/i/i/i/i/i/i/i
/s/i/s
#unlock
#end

:isin
#if scepter allow
$The troll blocks you:

     "Nobody leaves the castle without
      the Scepter of Lots 'n Lots of
      Power.  Return to your quest!"
#end

:allow
#lock
"Continue on, brave adventurer."
#restore touch
/n/i/n
/i/i/i/i/i/i/i/i
/s/s
#unlock
#end

:toopoor
"You can't afford it, idiot!"
464
What can be said now?
Posts: 0
Joined: Tue Oct 21, 2003 8:41 pm

Post by 464 »

kickass.. thanx..

Although I feel kind of stupid, I haven't even looked at the original zzt games since I first started using it in like 1999. When I left and came back I guess I felt too confident and thought I could remember everything....

another funny thing.. I have never used the "lock" and "unlock" commands.
User avatar
Zenith Nadir
this is my hammer
Posts: 2767
Joined: Wed Mar 12, 2003 11:40 am
Location: between the black and white spiders

Post by Zenith Nadir »

that's because you suck
he looked upon the world and saw it was still depraved :fvkk:

Overall: Rotton egg for breakfast
Locked