ID:147351
 
Okay, in the following codes, theres 2 lines that have the error: Summon.dm:54:error:/mob/summonverbs/verb: compile failed (possible infinite cross-reference loop)
And reason? The two lines have comments next to them with the errors.

obj
summons
icon = 'slimes.dmi'
verb
Drop()
if(usr.lib == 1)
usr << "You are in battle! Wait until Battle is over to drop this item!"
else
usr << "You drop the [src]!"
src.Move(usr.loc)

Slime_Crystal
icon_state = "bluecrys"
name = "Blue Slime Summoning Crystal"
verb
Use(mob/Newchar/C)
if(usr.monsterinparty == null)
usr << "The [src] begins to shake aruptly! A blue beam comes out of the [src] and a Blue Slime is formed! The [src] shatters into millions of pieces which are absorbed into the new monster..."
var/mob/summons/Blue_Slime_Summon/B = new/mob/summons/Blue_Slime_Summon()
usr << "<b><font color = olive>[B]:</b><font color = blue> Hiya! I'm a [B]! Since You're my new master, name me properly! I hate this name!"
sleep(20)
var/namea = input("What do you want to name the new [B]?","Name!")
B.name = namea
usr << "<b><font color = olive>[namea]:</b><font color = blue> Thanks! My new name is [name]!"
usr.monsterinparty = B
var/mob/A = new usr.monsterinparty.type(locate(C.x,C.y,C.z))
A.name = B.name
A.density = 0
usr.monsterfollow = A
for(var/verb in typesof(/mob/summonverbs/verb))usr.verbs+=verb // Line error 1
del(src)
else
usr << "You cannot have 2 monsters at once, get rid of your old one!"
Info()
usr << "This is a Summoning Crystal. This has the essence of a Blue Slime. When used, a Blue Slime will join your party."

mob
summonverbs
verb
Revert_Monster()
if(src.monsterinparty == /mob/summons/Blue_Slime_Summon)
src.monsterinparty = null
src.monsterfollow = null
del src.monsterfollow
new /obj/summons/Slime_Crystal
src << "Suddenly, your monster becomes an essence again and a crystal forms around it!"
for(var/verb in typesof(/mob/summonverbs/verb))usr.verbs-=verb // Line error 2