spell question (it wthis even getting thru?)

From: Giao H Phan (gphan@sas.upenn.edu)
Date: 06/26/95


Betti Wymer wrote:
> well, i'm not sure if my mail is getting through or not...but anyway.
> here goes again.
> i'm working on  a spell called "gate"....what i want to accomplish is
> that is creates a magical door way to a mob/obj/room that stays there
> for about 10 tics....and any one can enter the door way....(one way door)
> so i guess the big question is how do i set it up so when you cast it
> that it creates this doorway linked to the mob/obj/room....can you link
> obj's to things in this way?
> rick

i wrote some code to handle targets of objects, be it room/mob/pc/obj.
handy for other stuff, but if yer resourceful you dont need to go that 
far, handle it in the affect structure. you need a spec proc for the 
object, at any rate. have it look in the struct of the obj to see what 
the object's target is (which u assigned win the spell was cast). then 
move the dude to that room. you can handle 10 tick wear-off by giving the 
object a timer, or even manually decrementing it in the spec_proc. for an 
example of all this shit, mail me for our current address - heh.
-dert



This archive was generated by hypermail 2b30 : 12/18/00 PST