ID:262252
 
Code:obj
Forging_Square_
icon = 'turfs.dmi'
icon_state = "tile3"
verb
Forge_()
set src in oview(1)
set category = "Forge"
usr << "Unequip all of your items before starting the process or problems could occur during forging..."
sleep(100)
var/obj/Excalibur = locate(/obj/Excalibur) in usr.contents
var/obj/Fire_Staff = locate(/obj/Fire_Staff) in usr.contents
var/obj/Water_Staff = locate(/obj/Water_Staff) in usr.contents
var/obj/Wooden_Staff = locate(/obj/Wooden_Staff) in usr.contents
if(Excalibur)
if(Fire_Staff)
if(Water_Staff)
if(Wooden_Staff)
usr << "You lay down the Excalibur, giving it the full power of the 3 staffs..The staffs are useless now..."
sleep(50)
usr.contents += new /obj/Eternal_Sword
usr << "You pick up the newly made sword and call it the Eternal Sword!"
del(/obj/Excalibur)
else
usr << "You don't have the proper supplies to forge anything right now..."



I keep getting this error message:

Problem description: runtime error: bad del
proc name: Forge (/obj/Forging_Square_/verb/Forge_)
usr: Mecha Destroyer JD (/mob)
src: Forging Square (/obj/Forging_Square_)
call stack:
Forging Square (/obj/Forging_Square_): Forge ()


The problem with this is that you are trying to delete a type path. You see where you made an object reference "Excalibur":

var/obj/Excalibur = locate(/obj/Excalibur) in usr.contents


You should be deleting the object, and since you reference it, you should be using the reference to do so.

This is what you tried to do:

del(/obj/Excalibur)


This is what you should have done:

del(Excalibur)


Understand?

By the way, I dunno what you did to your post, but you should enclose the code in DM tags.
In response to Ter13
ok, thanx very much..I still dont get how to put the coding in the lil white area...
In response to Mecha Destroyer JD
type:

<DM>
code
</DM>

this exact example looks like this:

code
In response to Ter13
Ok, thanks alot.