obj/teleports
KantoSkill
name = "Teleporter to Kanto"
HP = 0
density = 1
verb
Jump()
set src in oview(1)
if(HP < level)
usr.loc = locate(16,81,1)
HP += 1
if(HP >= level)
view(6)<< "Teleport limit reached"
del(src)
else
view(6)<< "Teleport limit reached"
del(src)
my prob is, i want to make this a turf so i can just walk into it and teleport. But the problem is it deletes the top turf, Anyway to make Entered() work on Objs?
ID:261998
May 17 2004, 4:28 am
|
|
[link] Read through that thread. (The forum search function is your friend, get to know it.)
|
Entered() does work on objs, just not in the way most people expect. It is called when something moves inside of the obj ( mob.Move(obj) ), not when it moves into the turf that the obj is in ( mob.Move(obj.loc) ).
This FAQ entry describes how to do what you want: http://bwicki.byond.com/ByondBwicki.dmb?TriggeredObjs