ID:175921
 
Here is the code I have so far.
obj
verb
Summondragon()
set category = "Dragon Balls"
set name = "Summon Dragon"
if(usr.contents == /obj/dragonball/dragonball1 && usr.contents == /obj/dragonball/dragonball2 && usr.contents == /obj/dragonball/dragonball3 && usr.contents == /obj/dragonball/dragonball4 && usr.contents == /obj/dragonball/dragonball5 && usr.contents == /obj/dragonball/dragonball6 && usr.contents == /obj/dragonball/dragonball7)
usr.db1 = 0
usr.contents -= /obj/dragonball/dragonball1
new /obj/dragonball/dragonball1(locate(usr.x,usr.y,usr.z)) //change the x,y,z to were you put dragon balls
usr.db2 = 0
usr.contents -= /obj/dragonball/dragonball2
new /obj/dragonball/dragonball2(locate(usr.x,usr.y,usr.z)) //change the x,y,z to were you put dragon balls
usr.db3 = 0
usr.contents -= /obj/dragonball/dragonball3
new /obj/dragonball/dragonball3(locate(usr.x,usr.y,usr.z)) //change the x,y,z to were you put dragon balls
usr.db4 = 0
usr.contents -= /obj/dragonball/dragonball4
new /obj/dragonball/dragonball4(locate(usr.x,usr.y,usr.z)) //change the x,y,z to were you put dragon balls
usr.db5 = 0
usr.contents -= /obj/dragonball/dragonball5
new /obj/dragonball/dragonball5(locate(usr.x,usr.y,usr.z)) //change the x,y,z to were you put dragon balls
usr.db6 = 0
usr.contents -= /obj/dragonball/dragonball6
new /obj/dragonball/dragonball6(locate(usr.x,usr.y,usr.z)) //change the x,y,z to were you put dragon balls
usr.db7 = 0
usr.contents -= /obj/dragonball/dragonball7
new /obj/dragonball/dragonball7(locate(usr.x,usr.y,usr.z))
usr << "Who has awaken my slumber..."
switch(input("What is your wish", "Customization", text) in list ("Power","Money","Skills"))
if("Power")
usr.maxpowerlevel *= 2

if("Money")
usr.zenni += 300000

if("Skills")
switch(input("What skill do you want?", "Skills", text) in list ("Spirit Bomb","Kamehameha","Big Bang","Wrap","Regeneration","Kaio Ken","Telepath","Kienzan","Instant Transmission","Renzoku Energy Dan","KI Blast","Special Beam Cannon"))
if("Spirit Bomb")
usr.contents += /obj/spiritbomb

if("Kamehameha")
usr.contents += /obj/Kamehameha

if("Big Bang")
usr.contents += /obj/BigBang

if("Wrap")
usr.contents += /obj/wrap

if("Regeneration")
usr.contents += /obj/regen

if("Kaio Ken")
usr.contents += /obj/Kaioken

if("Telepath")
usr.contents += /obj/telepath

if("Kienzan")
usr.contents += /obj/kienzan

if("Instant Transmission")
usr.contents += /obj/it

if("Renzoku Energy Dan")
usr.contents += /obj/renzoku

if("KI Blast")
usr.contents += /obj/kiblast

if("Special Beam Cannon")
usr.contents += /obj/sbc
else
usr << "You haven't collected all 7 DragonBalls!"

obj
dragonradar
icon = 'turfs.dmi'
icon_state = "dragonradar"
verb
PickUp()
set src in oview(1)
Move(usr)
Drop()
set category = "Dragon Balls"
src.loc = locate(usr.x,usr.y-1,usr.z)
Location()
set category = "Dragon Balls"
usr << "You click on the Dragon Radar"
usr << "You are at [usr.x],[usr.y],[usr.z]"
Locate_Dragonballs()
set category = "Dragon Balls"
set name = "Locate Dragonballs"
for(var/obj/dragonball/O in world)
if(O.z == usr.z)
if(usr.x > O.x)
if(usr.y < O.y)
usr << [O] : northwestern direction!
([O.x],[O.y])"
if(usr.y > O.y)
usr << "[O] : southwestern direction!([O.x],[O.y])"
if(usr.x < O.x)
if (usr.y < O.y)
usr << "[O] : northeastern direction!
([O.x],[O.y])"
if (usr.y > O.y)
usr << "[O] : southeastern direction!
([O.x],[O.y])"
if(usr.x == O.x)
if(usr.y > O.y)
usr << "[O] is directly across from you!"
if(usr.y < O.y)
usr << "[O] is directly across from you!"
if(usr.y == O.y)
if(usr.x == O.x)
usr << "[O] is directly across from you!"
if(usr.x < O.x)
usr << "[O] is directly across from you!"
else
usr << "[O] points off to a distant planet!"

obj
dragonball
dragonball1
icon = 'dragonball.dmi'
icon_state = "1"
verb
PickUp()
set category = "Dragon Balls"
set src in oview(1)
Move(usr)
usr.db1 = 1

Dragonball1(M as mob in view(0))
set category = "Dragon Balls"

Drop()
set category = "Dragon Balls"
src.loc = locate(usr.x,usr.y-1,usr.z)
usr.db1 = 0

dragonball2
icon = 'dragonball.dmi'
icon_state = "2"
verb
PickUp()
set category = "Dragon Balls"
set src in oview(1)
Move(usr)
usr.db2 = 1

Dragonball2(M as mob in view(0))
set category = "Dragon Balls"

Drop()
set category = "Dragon Balls"
src.loc = locate(usr.x,usr.y-1,usr.z)
usr.db2 = 0


dragonball3
icon = 'dragonball.dmi'
icon_state = "3"
verb
PickUp()
set category = "Dragon Balls"
set src in oview(1)
Move(usr)
usr.db3 = 1

Dragonball3(M as mob in view(0))
set category = "Dragon Balls"

Drop()
set category = "Dragon Balls"
src.loc = locate(usr.x,usr.y-1,usr.z)
usr.db3 = 0


dragonball4
icon = 'dragonball.dmi'
icon_state = "4"
verb
PickUp()
set category = "Dragon Balls"
set src in oview(1)
Move(usr)
usr.db4 = 1

Dragonball4(M as mob in view(0))
set category = "Dragon Balls"
Drop()
set category = "Dragon Balls"
src.loc = locate(usr.x,usr.y-1,usr.z)
usr.db4 = 0


dragonball5
icon = 'dragonball.dmi'
icon_state = "5"
verb
PickUp()
set category = "Dragon Balls"
set src in oview(1)
Move(usr)
usr.db5 = 1

Dragonball5(M as mob in view(0))
set category = "Dragon Balls"
Drop()
set category = "Dragon Balls"
src.loc = locate(usr.x,usr.y-1,usr.z)
usr.db5 = 0


dragonball6
icon = 'dragonball.dmi'
icon_state = "6"
verb
PickUp()
set category = "Dragon Balls"
set src in oview(1)
Move(usr)
usr.db6 = 1

Dragonball6(M as mob in view(0))
set category = "Dragon Balls"
Drop()
set category = "Dragon Balls"
src.loc = locate(usr.x,usr.y-1,usr.z)
usr.db6 = 0


dragonball7
icon = 'dragonball.dmi'
icon_state = "7"
verb
PickUp()
set category = "Dragon Balls"
set src in oview(1)
Move(usr)
usr.db7 = 1

Dragonball7(M as mob in view(0))
set category = "Dragon Balls"
Drop()
set category = "Dragon Balls"
src.loc = locate(usr.x,usr.y-1,usr.z)
usr.db7 = 0


mob/Logout()
if(usr.contents == /obj/dragonball/dragonball1)
usr.contents -= /obj/dragonball/dragonball1
new /obj/dragonball/dragonball1(locate(usr.x,usr.y,usr.z))
if(usr.contents== /obj/dragonball/dragonball2)
usr.contents -= /obj/dragonball/dragonball2
new /obj/dragonball/dragonball2(locate(usr.x,usr.y,usr.z))
if(usr.contents == /obj/dragonball/dragonball3)
usr.contents -= /obj/dragonball/dragonball3
new /obj/dragonball/dragonball3(locate(usr.x,usr.y,usr.z))
if(usr.contents == /obj/dragonball/dragonball4)
usr.contents -= /obj/dragonball/dragonball4
new /obj/dragonball/dragonball4(locate(usr.x,usr.y,usr.z))
if(usr.contents == /obj/dragonball/dragonball5)
usr.contents -= /obj/dragonball/dragonball5
new /obj/dragonball/dragonball5(locate(usr.x,usr.y,usr.z))
if(usr.contents == /obj/dragonball/dragonball6)
usr.contents -= /obj/dragonball/dragonball6
new /obj/dragonball/dragonball6(locate(usr.x,usr.y,usr.z))
if(usr.contents == /obj/dragonball/dragonball7)
usr.contents -= /obj/dragonball/dragonball7
new /obj/dragonball/dragonball7(locate(usr.x,usr.y,usr.z))
else
del(src)
Coolroman123 wrote:
switch(input("What skill do you want?", "Skills", text) in list ("Spirit Bomb","Kamehameha","Big Bang","Wrap","Regeneration","Kaio Ken","Telepath","Kienzan","Instant Transmission","Renzoku Energy Dan","KI Blast","Special Beam Cannon"))
if("Spirit Bomb")
usr.contents += /obj/spiritbomb


if("Kamehameha")
usr.contents += /obj/Kamehameha

I see one major problem there...

The bolded text is indented one too much. In other words, unindent the bolded text by one.

I am not sure if this will solve your problem totally, but I do know that it should solve an indentation error that you are more than likely recieving from it. Seeing as it is indented on extra than all of the others.

--Lee
In response to Mellifluous
You are missunderstanding how types in DM work.

A type path is just that, a path. The engine has no way of knowing which /obj/spiritbomb/ your talking about, or /obj/ball/ or whatever. Look up locate().

contents is a list. A list is not a type path, therefore all those sanity checks at the top will always return false. You need to locate() the type paths in the contents.