English Spawners

3 replies
Goto Page
To the start Previous 1 Next To the start
11.08.20 11:58:20 pm
Up
Sish
User
Offline Off
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?
12.08.20 07:21:01 pm
Up
Nova
User
Offline Off
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?
Hexenverbrennung, Inquisition, Kreuzzüge... Wir wissen, wie man feiert! - Ihre Kirche
12.08.20 08:06:20 pm
Up
DC
Admin
Online On
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.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
13.08.20 04:51:57 pm
Up
Sish
User
Offline Off
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