Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: idea about z-axis cavein  (Read 1162 times)

puke

  • Bay Watcher
    • View Profile
idea about z-axis cavein
« on: September 11, 2007, 05:43:00 pm »

so i have been thinking about z-axis cave in problems, and how to handle them.  in know posting complicated algorithm ideas here is supposed to be verboten, but this is pretty simple and only has basic pseudo-code. so:

is clear area is 7x7?
is z+1 full of stone?
is z+2 thru z+n full of stone?

if: yes yes yes, then randomly cave in bits of z+1 down to the current level.
if: yes yes no, then drop down each z level up to z+n, where z+n is the first empty level.

i havent thought through every permutation, but i'm pretty sure such a check would cover all the bases.  can anybody confirm?

edit: NullAshton from IRC suggests randomizing how levels are dropped, in the case of a "yes yes no" such that rock will be jumbled and possibly leave empty squares above.

[ September 11, 2007: Message edited by: puke ]

Logged

Savok

  • Bay Watcher
    • View Profile
Re: idea about z-axis cavein
« Reply #1 on: September 11, 2007, 09:56:00 pm »

Isn't there already a cave-in thread?
Logged
So sayeth the Wiki Loremaster!

puke

  • Bay Watcher
    • View Profile
Re: idea about z-axis cavein
« Reply #2 on: September 12, 2007, 12:20:00 pm »

oh. guess i missed it.
Logged

FaultyLogic

  • Bay Watcher
  • [EDIBLE_RAW]
    • View Profile
Re: idea about z-axis cavein
« Reply #3 on: September 12, 2007, 03:33:00 pm »

What if it is filled with jam?
Logged
"It's unpossible!"

Draco18s

  • Bay Watcher
    • View Profile
Re: idea about z-axis cavein
« Reply #4 on: September 12, 2007, 04:09:00 pm »

quote:
Originally posted by FaultyLogic:
<STRONG>What if it is filled with jam?</STRONG>

This reminds me of the Polymorph any Object question in D&D:
If you PAO a bunch of cows into pebbles and toss the pebbles into a (small) room full of adventurers, then cast Dispell Magic (or wait the 2 minutes it takes for the pebbles to un-polymorph) what happens?

Logged

Thallone

  • Bay Watcher
    • View Profile
Re: idea about z-axis cavein
« Reply #5 on: September 13, 2007, 12:29:00 pm »

quote:
Originally posted by Draco18s:
<STRONG>

This reminds me of the Polymorph any Object question in D&D:
If you PAO a bunch of cows into pebbles and toss the pebbles into a (small) room full of adventurers, then cast Dispell Magic (or wait the 2 minutes it takes for the pebbles to un-polymorph) what happens?</STRONG>


Bad Things(tm). I know, in 2nd edition we did this with Boulder to Pebble as a Reduced Dracolich charged after us. An area dispel on those 50-odd large boulders filled the hallway. The ensuing blast nearly tool out my Fighter-mage (bone and stone shrapnel)

Logged