Hi, i am trying to create a code so that a mob goes where you want him to. Heres an example for what i meen. A proffesor walks into a room, goes in front of the usr, talks a little, then walks out of the room. Sort of like what happens if you play pokemon for gameboy, people walk up to the usr and talk. If you can make me a code for this, or if theres one out there, please post the coding for it.
Thanks
The Conjuror
ID:267023
![]() Oct 18 2002, 2:23 pm
|
|
![]() Oct 18 2002, 2:30 pm
|
|
Just use step() procs to tell a mob where to go. You can move a "movie" of sorts by setting up a chain of step() proc, sleep()s, and sending messages to the player.
|
Example:
<code>proc/Movie24() var/mob/doctor/D = new(locate(5,3,2)) var/mob/assistant/A = new(locate(3,8,2)) step(D, NORTH) step(D, NORTH) step(D, NORTH) step(D, NORTH) sleep(10) D.Emote("pauses.") sleep(10) D.Say("... Holy!") step(A, EAST) step(A, EAST) sleep(10) A.Say("What is it Doctor!?") sleep(10) D.Emote("dances around on one food.") sleep(10) D.Say("I stubbed my toe!") return</code> Probably be a good idea to prevent the player from doing anything while this is happening. |