ID:178788
 
ok heres my regular edible back man doit code except the ghost keep eating the dots. And my world.repop seems to be having no effect can u all help

turf
spot
icon = 'turf.dmi'
icon_state = "spot"
Entered()
usr.PTS+=10
usr<<sound('shoot4[1].wav')
del src
sleep(50)
world.Repop()
You have to do del src AFTER repopping because calling delete stops the proc where it is.
In response to Nadrew
ok thx much appreiciated and can anyone help with the ghost eating pac mans food
In response to RagnarofBurland
How are you currently handling it, that would help us determine how to help you?
In response to Nadrew
ok heres how.....

now heres few code examples for lack of better words

turf
spot
icon = 'turf.dmi'
icon_state = "spot"
Entered()
usr.PTS+=10
usr<<sound('shoot4[1].wav')
sleep(5)
world.Repop()
del src

mob/ghosts/GreenGhost
icon = 'mob.dmi'
icon_state = "greenghost"
Entered()
usr.PTS=0
usr.loc = locate(15,19,3)
usr<<"Sorry You lost all your points. Please try again"
usr<<sound('dw3castl.mid',1)
New()
walk_rand(src,7)

I realize that this might not help much but hey it newbie central right

In response to RagnarofBurland
Check out istype() in the reference. Here's an example:

turf/special
Entered(mob/M)
if(istype(M,/mob/special))
M << "You're so special!"
else
M << "I don't like you leave me alone!"
del(M)
In response to Nadrew
Ok nadrew i got that to work for one ghost specifically Pinky. How would i make it so "all"the ghst canna eat the dots

heres what i have

turf/spot
icon = 'spot.dmi'
Entered(mob/M)
if(istype(M,/mob/ghosts/Pinky))

else
M.PTS+=10
M<<sound('shoot4[1].wav')
del src
In response to RagnarofBurland
what no one is paying attention to me anymore!
In response to RagnarofBurland
RagnarofBurland wrote:
Ok nadrew i got that to work for one ghost specifically Pinky. How would i make it so "all"the ghst canna eat the dots

if(istype(M,/mob/ghosts))
In response to RagnarofBurland
RagnarofBurland wrote:
what no one is paying attention to me anymore!

It had only been three hours between then... as far as I know, people have duties besides posting on the forums all day. ;-P