The Dink Network

another question

August 7th 2006, 03:51 PM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
I'm doing a script there a enemy will show up, but not til the story (FarmerQ) say so...

This is the script:

void talk( void )
{
if (&FarmerQ == 1)
{
int &pwbon;
&pwbon = create_sprite(301, 370, 9, 619, 1);
sp_script(&pwbon, "en-pwbon");
wait(20);
&FarmerQ = 2;

}
}

en-pwbon is another script I have, with the enemy script info... Anyone know what's wrong here?
August 7th 2006, 04:18 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
Is this script attached to a sprite?
Does the &FarmerQ variable becomes 1 before(it's 0 by default)?
August 7th 2006, 04:32 PM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
1. The script is attached to a screen
2. Earlier, the farmerq moved from 0 to 1.
August 7th 2006, 06:56 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
change void talk( void ) into void main( void ). You can't talk to screens, they only have a main procedure.
August 7th 2006, 07:01 PM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
Ops! How couldn't I see that it was talk instead of main?
Thanks, I'll try if it work as fast I get my computer back from my brother
(Currently, I'm sitting with an old computer that can't handle dink)