At the end of my testing quest, there are 4 healing jewels. When the player warps back outside, I want to regenerate those objects. I'm sure theres an easy way to do it, but i've spent about 2 hours straight on it and have yet to figure it out :\
[Revised]
Oh and here's what I tried doing:
// Warp Points
SlimeQuestWarpStart
Entered(mob/M)
if (M.client)
M.Move(SlimeQuestWarpEnd)
if (M.music<>"rz06.mid")
M << sound("rz06.mid",1)
M.music = "rz06.mid"
/var/obj/Healing_Jewel/a = new(locate(34,50,1))
/var/obj/Healing_Jewel/b = new(locate(36,50,1))
/var/obj/Healing_Jewel/c = new(locate(34,48,1))
/var/obj/Healing_Jewel/d = new(locate(36,48,1))
but it spawns them immediatly, and never does again :(</<>
ID:149992
Jan 11 2002, 2:13 am (Edited on Jan 11 2002, 2:22 am)
|
|
In response to mystX
|
|
well trying all of these give me the specified errors:
<font size=2> /obj/Healing_Jewel/a = new(locate(34,50,1)) error:/obj/Healing_Jewel/a:bad path </font> <font size=2> /var/obj/tmp/Healing_Jewel/a = new(locate(34,50,1)) (No error, but the same results </font> <font size=2> var/obj/Healing_Jewel (Treates Healing_Jewel as a new object [as it should]) </font> <font size=2> /obj/Healing_Jewel error:/obj/Healing_Jewel:unknown variable type </font> ... I have NO idea what your trying to say ^_^ |
In response to Dreq
|
|
/var/obj/Healing_Jewel/a = new(locate(M.x,M.y,M.z))
|
In response to Dreq
|
|
Dreq wrote:
<font size=2> I would choose this method... Also, just as a side note, you might want to consider using <DM></DM> tags in your posts instead of those unsightly <font></font> tags when displaying code, this will make the code easier to read... mob/verb Nifty, no? |
In response to Tapion1
|
|
Still doesn't help ;)
I'm spawning at the end of my quest ya know! |
In response to Dreq
|
|
Dreq wrote:
Still doesn't help ;) As mentioned, don't put the / in front of var...that means it's a global variable in your game that never goes away. You want just var/. Next, when you spawn at the end of the quest, I'm guessing you are just setting the loc instead of using Move(), right? If so that is probably keeping Enter() from being called. |
In response to Dreq
|
|
same stuff as Deadron said, but also, if you wanted to reference the thing you probably know this, but, well, here:
mob blah, blah, kay? |
I don't know if this is the whole problem, but you're not supposed to do this /var that's saying it's a predefined variable, yet it's not if you're setting it there. got it?