pre-made bombs

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

Moderators: Commodore, Zenith Nadir

Post Reply
User avatar
q2k2k
1 full minit uv 1 secend mesiges
Posts: 74
Joined: Thu Apr 24, 2008 4:19 am

pre-made bombs

Post by q2k2k »

is there any way to make a pre-made bomb using the #become/#change feature? i am trying to make a rocket launcher but can only find already activated bombs
User avatar
Commodore
fgsdfs
Posts: 2471
Joined: Wed Mar 12, 2003 5:44 pm
Location: :noitacoL
Contact:

Post by Commodore »

#become bomb and #change whatever bomb will only make non-activated bombs.
*POW* *CLANK* *PING*
User avatar
q2k2k
1 full minit uv 1 secend mesiges
Posts: 74
Joined: Thu Apr 24, 2008 4:19 am

Post by q2k2k »

oh i see its impossible then, i currently use the #change/#becomes to make c4s, i guess no rocket launcher:(
User avatar
Commodore
fgsdfs
Posts: 2471
Joined: Wed Mar 12, 2003 5:44 pm
Location: :noitacoL
Contact:

Post by Commodore »

not that way at least. You'd probably have to it an object that you pick up, it follows you around, and then you push it to throw it and it #puts blocks around it when it thuds.

I haven't tested any of this code but this is what I'm thinking of:

Code: Select all

@rocket
#cycle 1
#end
:touch
#zap touch
:do
?seek#do
:touch
#zap touch
#walk opp seek
#end
:thud
#put n yellow fake
#put s yellow fake
#put w yellow fake
#put e yellow fake
#become yellow fake
Then you can fade out the explosion with a seperate object that looks for yellow fakes. (assuming you don't use them, red fakes, and red water as this code will make all of those tiles empty)

Code: Select all

@fader
#cycle 1
#if any yellow fake #do
#restart
:do
#change yellow fake red fake
/i#change red fake water
/i#change red water empty
#restart
To make the terrain explode build what you want out of objects then chain them together checking to see if they still block each other, if the chain is broken, all the objects disappear.

Code: Select all

@piece of helicopter or door whatever
#cycle 1
#if not blocked w #die 
#restart
*POW* *CLANK* *PING*
Post Reply