n00b ZZT-OOP question about #give time
Moderators: Commodore, Zenith Nadir
- Ian Plastic
- newcomer
- Posts: 5
- Joined: Sat Nov 17, 2007 10:49 pm
n00b ZZT-OOP question about #give time
Are there any differences between time and the other #give/#take items (health, ammo, etc)?
For example, if I create a game devoid of boards with a time limit, can time be used as just another counter, or does it act funny?
For example, if I create a game devoid of boards with a time limit, can time be used as just another counter, or does it act funny?
Gobble Goo!
-
- Posts: 371
- Joined: Fri Sep 01, 2006 1:30 am
<s>I'm pretty sure that the time counter ticks down regardless of whether there's a limit set or not</s> (actually i don't know). It resets every time you travel between screens.For example, if I create a game devoid of boards with a time limit, can time be used as just another counter, or does it act funny?
to my knowledge, the only use the time counter has (when not being used normally) is for checking if the player has just entered a board.
wil wrote:...In addition, if you're willing to do a bit of shit for it, the following are invaluable tools when developign unique inventory engines:
First: the "I know when you re-entered the board" trick. This trick is very useful because it uses the "time" variable, which nobody uses anyway.
This code is most valuable because it happens completely behind the scenes. If you don't want to tell them, people won't even know their progress across boards is being tracked.Code: Select all
@checkingobject #cycle 1 :enteredboard #give time 16300 You have entered the board! Whee! Execute valuable entered board code here. :loop /i/i#take time 1 enteredboard #loop
- Ian Plastic
- newcomer
- Posts: 5
- Joined: Sat Nov 17, 2007 10:49 pm
-
- Posts: 371
- Joined: Fri Sep 01, 2006 1:30 am
- Ian Plastic
- newcomer
- Posts: 5
- Joined: Sat Nov 17, 2007 10:49 pm
An RPG battle engine or some other one-board minigame, maybe. But the reason I asked in the first place was because I'm looking to make optimal use of as many universal (trans-board) counters as possible, so time doesn't interest me as much anymore. I'm sure I'll think of some place for it though.
Gobble Goo!
- Ian Plastic
- newcomer
- Posts: 5
- Joined: Sat Nov 17, 2007 10:49 pm
Some food for thought, though. I believe that the countdown doesn't start if you mess with time.
I ran the following program:
I ran the following program:
And it resulted in "There is not a countdown."#cycle 1
#give time 100
/i/i/i/i/i/i/i/i/i/i/i/i/i
#take time 99 bob
There is not a countdown.
#end
:bob
There is a countdown.
Gobble Goo!
- Dr. Dos
- OH YES! USE VINE WHIP! <3
- Posts: 1772
- Joined: Tue Mar 11, 2003 12:00 am
- Location: Washington
Maybe if you got the time over 32767.
Visit the Museum of ZZT
Follow Worlds of ZZT on Twitter
Apologies for the old post you may have just read.
Follow Worlds of ZZT on Twitter
Apologies for the old post you may have just read.
-
- Posts: 371
- Joined: Fri Sep 01, 2006 1:30 am
- Ian Plastic
- newcomer
- Posts: 5
- Joined: Sat Nov 17, 2007 10:49 pm