The Dink Network

Reply to Re: what is wrong with this script

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:
 
 
July 15th 2006, 08:03 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
You can just attach a script to the map with:

void main( void )
{
if (&story == cutscene_worty)
{
//cutscene stuff here
}
}

If en-phoenix is the cutscene then I would advise not using this name. Otherwise:

void main( void )
{
if (&story == cutscene_worthy)
{
spawn("cutscene");
//nothing here! spawn() won't stop this script!
}
}

Then in cutscene.c:

void main( void )
{
//cutscene stuff here
kill_this_task();
}

Alternatively, this should also work:

void main( void )
{
if (&story == cutscene_worthy)
{
external("cutscene","phoenix");
//maybe something here, external() stops this script.
}
}

Then in cutscene.c:

void phoenix( void )
{
//cutscene stuff here
}