Search found 5 matches
- Mon Sep 08, 2014 8:47 am
- Forum: ZZT Projects
- Topic: ZZT-OOP questions
- Replies: 9
- Views: 14230
Re: ZZT-OOP questions
Yeah, sorry about the flurry of edits; that was "the process", me figuring out a fix, trying everything. Tidied it up; cheers. Thanks for all the advice. I found a really rudimentary way to do the "clear all objects" thing, but now I have a better one. :) Not sure why a 17k board...
- Sun Sep 07, 2014 9:52 pm
- Forum: ZZT Projects
- Topic: ZZT-OOP questions
- Replies: 9
- Views: 14230
Re: ZZT-OOP death-related question (Please help!)
Okay! One more question.
Is it possible to make every instance of an object on screen #die with one command?
Is it possible to make every instance of an object on screen #die with one command?
- Sun Sep 07, 2014 7:47 pm
- Forum: ZZT Projects
- Topic: ZZT-OOP questions
- Replies: 9
- Views: 14230
Re: ZZT-OOP death-related question
Oh no - neither ZZT nor Kevedit are loading my game for editing or playing anymore. It just causes an instant crash to desktop. DreamZZT says "cannot load". Edit: I think I must have gone over 20k on a board and now my game won't load at all. Is it lost forever? :( Edit 2: Ah, ZZTAE sheds ...
- Sun Sep 07, 2014 6:23 pm
- Forum: ZZT Projects
- Topic: ZZT-OOP questions
- Replies: 9
- Views: 14230
Re: ZZT-OOP death-related question
Brilliant, thanks.
I actually found a method -
#take health 20 kill
#end
:kill
You cannot withstand another blow.
You have died.
#endgame
#end
It checks if there is 20 health to take and if not, it skips to the "kill" command.
I actually found a method -
#take health 20 kill
#end
:kill
You cannot withstand another blow.
You have died.
#endgame
#end
It checks if there is 20 health to take and if not, it skips to the "kill" command.
- Sun Sep 07, 2014 12:58 pm
- Forum: ZZT Projects
- Topic: ZZT-OOP questions
- Replies: 9
- Views: 14230
ZZT-OOP questions
I've picked up a project from a good decade ago to work on again, and I'm running into a silly little ZZT-OOP issue. I'm sure it's an oversight on my part, but basically I have monsters that I've programmed to take, say, 5 health on contact, 20 health for the harder hitters. However, when the player...