Forum

> > Stranded II > General > Spawners
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Spawners

3 replies
To the start Previous 1 Next To the start

old Spawners

Sish
User Off Offline

Quote
I had an idea to make a spawner that spawns animals like a butterfly garden. I made a turtle rock tha supposed to spawn turtles but I messed up on the script. Can someone help me?

old Re: Spawners

Nova
User Off Offline

Quote
Just show us your script so we can check for any mistakes. What did you do to create your turtle rock? Did you get any error messages?

old Re: Spawners

DC
Admin Off Offline

Quote
Also you should be able to just copy an existing script and modify the ID of the unit which is checked & spawned. For instance the "raptor nest" which can be found in
objects_stuff.inf

Note that the
var
statements in the definition are required as well.

old Re: Spawners

Sish
User Off Offline

Quote
Here's my script:

### Turtle Spawner
id=230
name=Turtle Spawner
group=building
icon=gfx\turtlespawner.bmp
model=gfx\turtlespawner.b3d
health=100
mat=stone
maxweight=100000
script=start
}
     on:build_finish {
          event "turtlespawnerbuild",0,0;
}
on:use {
msgbox "Turtle Spawner","sys/scripts/turtlespawner.s2s";
}
     on:changeday {
          local $c;
      $c+=count_inrange("unit",10,20,"self");
          if ($c<3){
               create "unit",10,getx("self"),getz("self");
               if (random(2)==1){
                    create "unit",10,getx("self"),getz("self");
               }
          }
     }
script=end
description=start
Creates turtles
description=end




I also had an idea to make a beehive that spawns bees, but I cant make models for them
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview