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()
ID:178788
Apr 5 2002, 2:47 am
|
|
Apr 5 2002, 2:55 am
|
|
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 |
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 |