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!
ID:177809
Jul 26 2002, 10:58 am
|
|
In response to Ter13
|
|
loading Bee Blast.dme
Flower.dm:12:error: I: missing comma ',' or right-paren ')' Flower.dm:12:error: I: expected end of statement Flower.dm:13:error: F: missing comma ',' or right-paren ')' Flower.dm:13:error: F: expected end of statement Flower.dm:17:warning: empty 'else' clause Bee Blast.dmb - 4 errors, 1 warning (double-click on an error to jump to it) |
In response to Ter13
|
|
loading Bee Blast.dme
Flower.dm:12:error: I: missing comma ',' or right-paren ')' Flower.dm:12:error: I: expected end of statement Flower.dm:13:error: F: missing comma ',' or right-paren ')' Flower.dm:13:error: F: expected end of statement Flower.dm:17:warning: empty 'else' clause Bee Blast.dmb - 4 errors, 1 warning (double-click on an error to jump to it) |
In response to ShadowSiientx
|
|
as I said, I didn't test it, I made a few corrections, check it out.
|
In response to Ter13
|
|
same errors.
|
In response to ShadowSiientx
|
|
here's a clue, there are two missing perentheses, ans Shift should be capitolized. had you not copied and pasted, you would have caught that.
|
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.