The Dink Network

Reply to Re: 2 more development qestions.

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:
 
 
April 5th 2011, 07:01 AM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
I'm not sure if it's possible to use tiles with visions, unless you make background sprites which look like tiles

As for your other question, I believe if you look in dam-fire.c in the source there's a bit which probably looks something like this:

int &scrap;
int &fcrap;
&scrap = sp_pseq(&missile_target, -1);
&fcrap = sp_pframe(&missile_target, -1);

if (&scrap == #You'd put the sequence number here#) 
{
if (&fcrap == #You'd put the frame number here#) 
{
sp_script(&missile_target, "burndown");
}

}


This would see if what it hit was that sequence and frame combo, then if it was it will attach the burndown.c script to it.
Bare in mind that there might be problems with my script, because I didn't copy-paste. It will probably work, but if it doesn't let me know and I can be suitably embarrassed

EDIT: Forgot to mention, you would need to attach that script to the spell. So if you shot out a green fireball, for example, you'd then attach the above script to it. You said you were using a melee spell? I'm not sure what you mean, but it might not work if it doesn't involve shooting anything...