another question
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?
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?
Is this script attached to a sprite?
Does the &FarmerQ variable becomes 1 before(it's 0 by default)?
Does the &FarmerQ variable becomes 1 before(it's 0 by default)?
1. The script is attached to a screen
2. Earlier, the farmerq moved from 0 to 1.
2. Earlier, the farmerq moved from 0 to 1.
change void talk( void ) into void main( void ). You can't talk to screens, they only have a main procedure.










