Reply to upgrading script prevents monster spawning.
If you don't have an account, just leave the password field blank.
I upgraded a script to include more monsters in later stages but now it stopped working and i've double checked i know i use the correct counter names so now wondering if i missed something(probably just a bracket somewhere which probably is one of the most common script errors just like semicolon's
wonder what causes it to not work because initially it did work
// guess what i spawn monsters in the dungeons
void main(void)
{
if (&dungeon == 1)
{
if (&special == 0)
{
//ok just arrived so letsspawn some pillbugs
int &temp = create_sprite(295,160,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill");
int &temp = create_sprite(295,230,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill");
int &temp = create_sprite(511,160,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill");
int &temp = create_sprite(511,230,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill");
if (random(2,1) == 1)
{
int &temp = create_sprite(332,139,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill");
}
if (random(2,1) == 1)
{
int &temp = create_sprite(332,220,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill");
}
&special += 1;
//tells the mod you've been here so the monsters won't respawn again after you've
left the screen
}
}
if (dungeon == 3)
{
if (&special == 0)
{
//ok just arrived so lets choose what to spawn via randomness
int &who = random(3,1);
if (&who == 1)
// pillies won so lets spawn them
{
int &temp = create_sprite(295,160,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill1");
int &temp = create_sprite(295,230,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill1");
int &temp = create_sprite(511,160,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill1");
int &temp = create_sprite(511,230,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill1");
if (random(2,1) == 1)
{
int &temp = create_sprite(332,139,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill1");
}
if (random(2,1) == 1)
{
int &temp = create_sprite(332,220,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill1");
}
if (&who == 2)
// half pillies and purple bonca's won so lets spawn them
{
int &temp = create_sprite(295,160,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill1");
int &temp = create_sprite(295,230,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill1");
int &temp = create_sprite(511,160,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pbon");
int &temp = create_sprite(511,230,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pbon");
if (random(2,1) == 1)
{
int &temp = create_sprite(332,139,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pill1");
}
if (random(2,1) == 1)
{
int &temp = create_sprite(332,220,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pbon");
}
if (&who == 3)
// bonca's won so lets spawn them
{
int &temp = create_sprite(295,160,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pbon");
int &temp = create_sprite(295,230,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pbon");
int &temp = create_sprite(511,160,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pbon");
int &temp = create_sprite(511,230,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pbon");
if (random(2,1) == 1)
{
int &temp = create_sprite(332,139,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pbon");
}
if (random(2,1) == 1)
{
int &temp = create_sprite(332,220,9,131,1);
sp_dir(&temp,1);
sp_script(&temp,"en-pbon");
}
&special += 1;
//tells the mod you've been here so the monsters won't respawn again after you've
left the screen
}wonder what causes it to not work because initially it did work







