how would i make turf/flowers spawn on turf grass..Every 1 min then make it say to the world: "Some Flowers grow!"
But there can only be a max of 15 flowers on the feild..
and how would i make a check to see if there is less then 15..
and if there is add more to make 15..
then loop the proc and check again.
make the flowers spawn on the turf/grass in random locations!
- Credit goes to helpers!
grow()
var/flowers
var/obj/flower/F
for(F in src.contents)
flowers += 1
continue
if(flowers<15)
F = new/obj/flower
var/icon/I = new/icon(F.icon)
I.shift(NORTH,rand(4,28)
I.shift(EAST,rand(2,28)
F.icon = I
src.overlays += F
spawn(20) grow()
return 1
else
spawn(20) grow()
return 0
I didn't test it, but it should work, make sure your flower pics are 4x4 pixels and in the lower left corner of the picture when they are made, good luck.