#zap Objectname:command

NOTE: I HATE A LOT OF YOUR ZZT GAMES, SO WATCH OUT!

Moderators: Commodore, Zenith Nadir

Post Reply
User avatar
Quindo
dark wraith for light
Posts: 152
Joined: Thu Jul 06, 2006 2:41 pm

#zap Objectname:command

Post by Quindo »

This also works with restore. Thisnk about it. You can have a locked program change loops with #zap loopobject:loop1
This is a easy game...

<a href="http://www.fallensword.com/?ref=394941">FallenSword RPG - Play online now free!</a>
User avatar
nps
so kawaii! so cute!
Posts: 810
Joined: Sun Jan 18, 2004 1:51 pm

Post by nps »

tanks!
User avatar
Quantum P.
Level 17 Accordion Thief
Posts: 1433
Joined: Fri Sep 12, 2003 1:41 am
Location: Edmonds, WA
Contact:

Post by Quantum P. »

This is a known trick, but yeah, you can do some neat stuff with it.
User avatar
Quindo
dark wraith for light
Posts: 152
Joined: Thu Jul 06, 2006 2:41 pm

Post by Quindo »

Do you know of any other commands you can use this for?
This is a easy game...

<a href="http://www.fallensword.com/?ref=394941">FallenSword RPG - Play online now free!</a>
User avatar
Quantum P.
Level 17 Accordion Thief
Posts: 1433
Joined: Fri Sep 12, 2003 1:41 am
Location: Edmonds, WA
Contact:

Post by Quantum P. »

I believe you can do a similar thing with #restart:

Code: Select all

@Object1
/i/i/i/i/i#Object2:restart

Code: Select all

@Object2
#cycle 1
/n/s/e/w
Object2 should run around in a circle, pause, then run around again because Object1 #restarted it. But this isn't anything you can't do with labels.
User avatar
Quindo
dark wraith for light
Posts: 152
Joined: Thu Jul 06, 2006 2:41 pm

Post by Quindo »

However you could use that to completely restart all the objects on the board just by adding a few more lines of code in. For pushers you can have all the pushers become empties and have fakes become pushers to restart them. How ever ome bug would have to be sorted out.
This is a easy game...

<a href="http://www.fallensword.com/?ref=394941">FallenSword RPG - Play online now free!</a>
User avatar
kkriegg
newcomer
Posts: 20
Joined: Thu Oct 11, 2007 2:10 am
Location: Seattle, WA

Post by kkriegg »

I cast ressurection on this thread.

Can you also #unlock objectname?
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 »

i don't think you can... feel free to prove me wrong, though, i don't feel like actually opening zzt to find out right now
he looked upon the world and saw it was still depraved :fvkk:

Overall: Rotton egg for breakfast
gingermuffins
Posts: 371
Joined: Fri Sep 01, 2006 1:30 am

Post by gingermuffins »

nope, you'll have to use labels or #if flag to get the command across
Post Reply