I have a simple code for monster repop
proc/check_for_mob()
for(var/mob/player/avatar/M)
M<<"Repop"
M<<"[mouse1],[mouse2],[mouse3],[giantworm1],[giantworm 2],[rat1]"
if(mouse1 <= 0)
mouse1 = 1
new/mob/monster/mouse1(locate(11,5,2))
if(mouse2 == 0)
mouse2 = 1
new/mob/monster/mouse2(locate(6,12,2))
if(mouse3 == 0)
mouse3 = 1
new/mob/monster/mouse3(locate(12,11,2))
if(giantworm1 == 0)
giantworm1 = 1
new/mob/monster/giant_worm1(locate(7,3,3))
if(giantworm2 == 0)
giantworm2 = 1
new/mob/monster/giant_worm2(locate(12,3,3))
if(rat1 == 0)
rat1 = 1
new/mob/monster/rat1(locate(12,9,3))
spawn(300) check_for_mob()
this code works, but only when one mob is killed at a time (before the code respawns). Why?
ID:178289
May 31 2002, 3:30 pm
|
|
Shun Di, Out