How do i make a turf, that when walked apon, would spawn a mob about, 5 or so spaces above them?
Plz and Thxs (Cuz i have no idea what to do)
ID:162549
Dec 23 2007, 5:20 pm
|
|
In response to Garthor
|
|
Well you see i get that part, but im not sure how to create a mob when its stepped on.
|
In response to Darkarch
|
|
I believe it's
/var/mob/mobtype/O = new(loc(1,1,1)) But since I'm so new I wouldn't take my word. I'd either look it up or wait for someone with some experiance to double check that for me. Tim |
In response to Timmeh_1250
|
|
turf/ThwompTrigger1 Entered(x) /var/mob/Thwomp/O = new(locate(2,12,1)) O.Gravity() Thats what i made.... He appears there but hes already there even if i didnt step on the turf... |
In response to Darkarch
|
|
Then it sounds like you didn't need to create one at all.
|
However, what you'll want to do is use Entered() to define what happens when an atom/movable enters a turf. Remember to check if it's a mob (using ismob()), because you probably don't want objs to trigger trigger whatever you want to do.