Page 3 of 4
Posted: Sat Sep 30, 2006 9:35 pm
by Commodore
ZZT Guy wrote:Quindo wrote:SInce this is about quistions ive got one. Whats up with corrupt boards?
Corrupt....boards?
A board that had bad data written to it, rendering it unuseable by ZZT. It can happen under a number of circumstances. If ZZT crashes, if your external editor crashes, if your game file exceeds 250k, or if a single board exceeds 20k. This does not happen everytime you crash or break these rules, but it increases your likelyhood that a board or several boards will be corrupted. It also can happen for no apparent reason, though not very often. Your title screen can crash it too if you are trying to do something naughty with it. I won't go into all the ways you can force ZZT to crash, it's not too hard to figure out. If you try though make sure you're using a scrape world.
If you're trying to do something big on a board it's disturbingly easy to go over the 20k limit. Use kevedit and it will be able to tell you the size of individual boards.
Posted: Sat Sep 30, 2006 9:37 pm
by ZZT Guy
Another question,
How do i get it so that when an object
touches the player, a message appears?
Posted: Sat Sep 30, 2006 9:42 pm
by Commodore
you need a loop and an #if statement.
:loop
#if contact #do
'movement code
#loop
:do
Hi! I touched you!
#end
This is good for making enemies too.
It will go off if the player gets next to the object, or the other way around. It's not really the object touching the player, but its as close as you can get.
Posted: Sat Sep 30, 2006 11:27 pm
by ZZT Guy
How do i get it so that an object can give,
or take away, things? like, take3 gems and
give you some ammo...
Posted: Sun Oct 01, 2006 12:18 am
by Jotz
#give ammo 7
#take gems 3
etc.
Have you checked out the built-in help menu in ZZT? If not, read it first before asking any more questions.
Posted: Sun Oct 01, 2006 12:21 am
by Commodore
Posted: Sun Oct 01, 2006 2:41 am
by Quantum P.
If you're making like a storekeeper, you'll want something like this, though:
Code: Select all
#take gems 3 toopoor
#give ammo 7
Here's your ammo!
#end
:toopoor
You don't have enough gems to pay for that!
This way, #give ammo 7 will not run until the player has already paid for it.
Here's an
online copy of the ZZT-OOP reference manual.
Posted: Sun Oct 01, 2006 6:20 am
by Schroedingers Cat
I wrote:MadTom wrote:"Can I change my username without asking the staff to do it?"
Right Here.
Z2 wrote:WARNING: All who imitate other people with this will be banned, even if they are mods or admins!
Username/Password Recovery wrote:
Error adding request.

Believe it or not, this was actually a request to change my name back to "Schrödinger's Cat" (Mind the capitalization.) I was trying to point out how the username change wasn't properly working. Could somebody either
or
- B) Fix the username changing script
?
Posted: Sun Oct 01, 2006 8:45 am
by Ryan Ferneau
Commodore wrote:If you're trying to do something big on a board it's disturbingly easy to go over the 20k limit.
ALWAYS USE #BIND.
Posted: Sun Oct 01, 2006 10:30 am
by Commodore
good point, unless you use #zap. then things can get ugly.
Posted: Sun Oct 01, 2006 10:53 am
by MadTom
Commodore wrote:If you're trying to do something big on a board it's disturbingly easy to go over the 20k limit. Use kevedit and it will be able to tell you the size of individual boards.
ZZT Guy:
http://zzt.org/?p=gtsm
Posted: Mon Oct 02, 2006 5:08 am
by Quantum P.
Done. The name change, not the script rewriting.
EDIT: That script was written for people to change their names from numbers back when the database was having problems in January 2004. I'm not so sure it should still be in use.
Posted: Mon Oct 02, 2006 1:26 pm
by ZZT Guy
Question: Im trying to make my own object that can sell things
to the player,
but how do i get it, so that when i press enter on a selectable thing in the text window it opens anbother message?
Posted: Mon Oct 02, 2006 7:21 pm
by Commodore
use !
!message;text
then make the message lead you to more text or commands to take gems.
!buytorch;1 torch, 5 gems.
!buyammo;1 ammo, 3 gems.
#end
:buytorch
#take gems 5 toopoor
#give torches 1
Thank you!
#end
:buyammo
#take gems 3 toopoor
#give ammo 1
Thank you!
#end
:toopoor
You don't have enough money.
#end
Posted: Mon Oct 02, 2006 9:49 pm
by ZZT Guy
How do i get so that when the player shoot all the enimies on the
board, a wall dissapears allowing him/her to go onto the next room?