Hi! Recently, I've been making a tile world gen, and all is well! But, I've been trying to make underground dragon caves using these events:
<img src="https://dl.dropboxusercontent.com/u/61808535/dcaveprob.png" border="0" />
Here's how it works:
It goes through the Array, and finds all the 2's. Then it checks if the 2's are between a certain range on the Y-Axis. If they are, it picks a random number between 0-100. If it is between 0-2, then it sets a 2 to 5. Then from that 5, it makes a 20x8 cave out of 5's. But that doesn't happen.
It just sets any random 2's to 5. Can anyone tell me why this is? Thanks!