ID:169977
 
proc/CTFREPOP()
..()
sleep(100)
world.Repop()
sleep(200)
world.Repop()
sleep(300)
world.Repop()
sleep(400)
world.Repop()


That is the proc.

obj/Flag
icon='turf.dmi'
Red
icon_state="red"
var/team="A"
proc/Trigger(mob/M)
if(M.team=="B"&&ctf)
Bscore++
CTFREPOP()
del(src)


Now its "TEH SUX" Because it gives me a runtime error for the ..() Line. If i remove it, no runtime but it wont delete the flag. Any help? Please?

~>Jiskuha
I don't think you know what ..() actually does.

Scoobert has an article on BYONDscape about it. I'd link you, but my monitor turns off and won't go back on untill I restart the comp whenever I go to BYONDscape.
..() calls the parent procedure.

Seing as proc/CTFREPOP is a top-level definition, you can't really use ..() in it, so of course it's calling a runtime.

Just remove it. I'm not certain what you were thinking you were doing qith the ..() line, but I, as Airjoe said, don't think you know what ..() does.

This is a proper use of ..()

mob
proc
die()
del src
human
var
soul = "evil"
die()
if(src.soul=="good")
src << "Your good nature saves you from death!"
src.Move(locate(1,1,1),SOUTH)
else
src << "Your evil nature condemns you to death!"
..()


Not a good example, but it's a simple one. If the player is evil, it will call the parent definition of die() and delete the player. If the player is good, it will save them from death and relocate them to a set position.
In response to Ter13
To know knowledge ..() made sure everything before it was done before it called the rest of something.

~>Jiskuha
In response to Jiskuha
To ensure everything else has a chance to go, just use spawn().
In response to Ter13
That works fine however was my conclusion in [link] correct or not?

~>Jiskuha
In response to Jiskuha
No. It does not make certain everything else is finished first, it simply calls the parent procedure.
In response to Ter13
Oh okay, I guess I shall read up on ..(). Thanks for the help guys!

~>Jiskuha
In response to Jiskuha
Jiskuha wrote:
Oh okay, I guess I shall read up on ..(). Thanks for the help guys!

I suggest reading this.