The Dink Network

Reply to Re: Touching!

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:
 
 
March 26th 2008, 05:59 AM
wizardb.gif
Endy
Peasant He/Him United States
 
You can use the same script for both actions, you just have to know Lyna's sprite number. You can either:

Do a search for Lyna's sprite

Spawn Lyna's script directly

Save Lyna's sprite number into a global in the main procedure of Lyna's script, then read it from the box script

Save Lyna's sprite number into one of Dink's attributes and then read it back in the box script

Basically:

//Lyna's script
void main( void )
{
sp_gold(1, ¤t_sprite);
}

and before the loop in the other script:

//short wait to allow lyna's script to work
wait(1);
int &girl = sp_gold(1, -1);

Then just use another smaller loop to check both Dink and the girl, by reseting &sprite