Forum

> > Stranded II > General > Spawners
ForenübersichtStranded II-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Spawners

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Spawners

Sish
User Off Offline

Zitieren
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?

alt Re: Spawners

Nova
User Off Offline

Zitieren
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?

alt Re: Spawners

DC
Admin Off Offline

Zitieren
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.

alt Re: Spawners

Sish
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtStranded II-ÜbersichtForenübersicht