ID:196302
 
(See the best response by Flame Sage.)
i have offically made it so you die in my game. but when i die i just respawn in the corner. i wan to make it so i spawn into Heaven and have to climb thru snakeway and go to king kai and catch the people so i can become alive again. i need help. D:
Well, as a good first point I think, could you post the code that makes players 'die'?

As a guess, it moved them to a given location after doing all it's various checks and changes. If that's the case (we'll see when you post), then it may just be as easy as changing where it puts the player on the map.
Here is a quick little snippet that I think does what you want. You'd have to call Death_Check on all damaging procs/attacks/etc

mob/proc/Death_check()
if(src.health <= 0)
//do all cosmetic changes here
src<<"You've died and moved on to snake way"
src.loc = Snake_way_loc
i have a deathcheck
mob
proc
deathcheck(mob/M)//DeathCheck proc
if(M.Health <=0)
M.x = 1
M.y = 1
M.z = 1
M.Health= M.MaxHealth
world << "<b><font color=red>[M] died in the hands of [usr]"
usr << "<b><font color=blue>You killed [M]."
..()

and i know i can change the coordinates to fit right, but i want to then make it so you can like, fight. then in order to leave, you need to do the king kai stuff
Best response
You are asking for us to program an entire part of your game for you. Instead you should research what you will need to do to make that happen.

It seems like you need...
An NPC to talk to.
A check to see if the player is really dead
if they are, locate them to the real world
Restore their HP and reset their IsDead variable.

Look in the forums for demos on NPCs that should put you in the right direction.
If people can attack each other in this dead world you probably will want a variable to keep track of if they have already died.

Look at the DM guide under variables to learn how to define them
You have to specify Death Snakeway Loc.
Anyway, you should change that proc, it seems like you're going to send a person (who could have -100000 HP) to that place and leave him with negative hp, restore his health to his max health, and also ki I believe. Then change some vars, or you'll have tons of trolls killing people already dead.

By the way, Dragon Ball Games are invisible on HUB.
In response to Eternal_Memories
Eternal_Memories wrote:
By the way, Dragon Ball Games are invisible on HUB.

Hub is not an acronym.
turf/kkplanet

verb
Jump()
set src in oview(6)
set category = null
if(prob(98))
usr << "You managed to jump to King Kai's Planet safely"
usr.loc = locate(x,y,z)
else
usr << "You just miss King Kai's Planet and fall down to HFIL"
usr.loc = locate(x,y,z)
mob/NPC/
King_Kai
name = "{NPC} King Kai"
icon = 'King Kai.dmi'
density = 1
doing = 0
verb/Talk()
set src in oview(1)
set category = null
switch(input("King Kai: What do you need Mister?","") in list ("I want to be revived"/*,"I want to go to Supreme Kai's","I want more training"*/,"Never Mind"))
if("Never Mind")
return
if("I want to be revived")
if(src in oview(2))
usr << "<font color = white>King Kai:</white> I see you are ready to go, let me revive you."
usr.dead = 0
usr.loc = locate(5,5,1)
usr.safe = 0
sleep(600)
usr.safe = 0
return
else
usr<< "<font color = white>King Kai:King Kai: Bye!"

other world.dm:22:error: switch: undefined proc
other world.dm:23:error: if: undefined proc
other world.dm:25:error: if: undefined proc
other world.dm:26:error: if: undefined proc
i am not understanding these errors
You have the switch() tabbed over too far.
If you do not understand these errors, I suggest you head over to the DM guide and read through that carefully before attempting to write anything. As for your issue, you have your switch statement tabbed too far as LordAndrew mentioned.