if(M.hyruletemple)
M.loc=locate(/turf/Hyruletemple)
ID:272292
![]() May 30 2008, 12:32 pm
|
|
I need help making it so that when my character is defeated it teleports him to a random hyrule temple turf to stop spawn killing, for example say I spawn in one spot, the next time I die I spawn in another, and a different spot after that. I remember seeing how to do this somewhere but I can't remember where.
|
![]() May 30 2008, 12:56 pm
|
|
What you want to do here is make a list of the spots the player can respawn at, then use pick() to randomly choose one of them and teleport the player there. You can use a for() loop to get the list.
|
Here:
proc/MoveToArea(atom/movable/A,options[]) To move a player, you could do this: var/area/hyrule_temple = locate("hyrule temple") ... Or something like that. |