proc
doit2()
for(var/mob/M in world)
if(M.tourny)
var/A=pick(Entries)
var/B=pick(Entries)
var/C=pick(Entries)
var/D=pick(Entries)
if(A==B||A==C||A==D||B==C||B==D||D==C)
goto doit2
sleep(10)
M<<"<center><B>Tournament Announcer: Okay lets start this match!</center></B>"
sleep(20)
M<<"<center><B>Tournament Announcer: This match will be...</center></B>"
sleep(30)
M<<"<center><B>Tournament Announcer: [A] & [D].VS. [B] & [C]!</center></B>"
B:loc=locate(105,190,2)
A:loc=locate(50,61,48)
C:loc=locate(105,191,2)
D:loc=locate(50,61,48)
Team_Fight(A,B,C,D)
B:dir=WEST
C:dir=WEST
A:dir=EAST
D:dir=EAST
sleep(50)
M<<"<center><b>Fight!"
Team_Tournament_AI()
Team_Fight()
return
Team_Fight()
proc
Team_Fight(mob/A,mob/B,mob/C,mob/D)
if(A.health <= 0&&D.health <= 0)
world<<"[B] and [C] has won against [A] and [D]!"
B.loc=locate(118,168,2)
C.loc=locate(118,168,2)
A.tourny = 0
D.tourny = 0
A.loc=locate(11,320,3)
D.loc=locate(11,320,3)
A.health = A.maxhealth
B.health = B.maxhealth
C.health = C.maxhealth
D.health = D.maxhealth
Entries.Remove(A)
Entries.Remove(D)
Team_Tournament_AI()
return
else
spawn(1)
goto doit2
if(B.health <= 0&&C.health <= 0)
world<<"[A] [D] has won against [B] and [C]!"
A.loc=locate(118,168,2)
D.loc=locate(118,168,2)
B.loc=locate(11,320,3)
C.loc=locate(11,320,3)
B.tourny = 0
C.tourny = 0
A.health = A.maxhealth
B.health = B.maxhealth
C.health = C.maxhealth
D.health = D.maxhealth
Entries.Remove(B)
Entries.Remove(C)
Team_Tournament_AI()
return
else
spawn(1)
goto doit2
Problem description:
New AutoMated Tourney.dm:242:error: doit2: jump failed
OK I check over the code like 10 times... and I finnaly noticed well ok look i need Help i can get this on my own.