The Dink Network

Reply to Re: hmm...

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 31st 2002, 04:04 AM
fish.gif
: Imagine a random monster generator script for a screen, using my hard.dat (where all 'internal' hard areas (on cliffs, in water, etc.) are filled in with hardness).  Now, you want to place a random monster (pretty easy) at a random location.  You want to make sure the location isn't hard, otherwise the monster will be stuck.

How about putting the monsters on the screen using editer on the screen, and initially giving them the following attributes:

sp_size: 1

sp_speed: 6 (or the fastest Dink engine allowed)

sp_timing: 0

sp_brain: 9 or 16

And then add a wait(100) or something longer, then change them back to normal attributes?

The only drawback of this technique is those monsters would appear some time AFTER Dink enters the screen. If you have tons of monsters, that could cause some problems. But if the wait time delay is too short, the monster would appear right at the same area...