ID:266467
 
mob/King_Kai
icon='KK.dmi'
verb
Train_Under()
set src in oview(1)
switch(input("Hello")in list("YEEE"))
if("YEEE")
for(var/mob/M as mob in world)
if(M.Bubbles2==1)
usr<<"Find Bubbles hes out there"
if(M.Bubbles2==2)
usr<<"Someone caught Bubbles already"
if(M.Bubbles2==0)
new/mob/Bubbles(locate(usr.x+1,usr.y+1,usr.z))
usr.Bubbles2=1


mob/var
Bubbles2=0
mob/Bubbles
icon='clouds.dmi'
verb
Catch()
usr.Bubbles2=2






THis makes like 500000000000000000000000000000000000000000000000000000000000 000000000000000000000000000x50000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000+++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++even more bubbles (lets just say it makes infinate) n e 1 know the prob
Whats happening is that with for your saying for all the mobs in the world and a bubbles is being created from each of those mobs since no one has created one all the mobs creates one.
In response to Super16
so how can i fix this?
In response to Strange Kidd
Don't use the for. Also use usr instead of M so that it creates only for you and not the mobs in the world.
In response to Super16
ok makes sense but if another person comes up wont it still let them make a new bubbles?
In response to Strange Kidd
Yes than do this. THese are not mob vars.

var
maxbubbles=1
bubbles=0

For when you create the mob add one to bubbles then before the input put if(bubbles==maxbubbles) return so that no one else can do it. Then when the other bubbles is deleted then the var bubbles = 0. Also with these vars you don't use src or usr because they aren't mob vars juts use the vars name.