ID:141857
 
Code:
spawn(1200) reaspawn_npc
(mob/monster/Dodoria)
loc=locate(z,y,z)


Problem description: loading sagas.dme
mobs.dm:2636:error:1200:value not allowed here
mobs.dm:2638:error:loc:undefined var
mobs.dm:2636:error::empty type name (indentation error?)

sagas.dmb - 3 errors, 0 warnings (double-click on an error to jump to it)


PerfectGoku wrote:
Code:
> spawn(1200) reaspawn_npc
> (mob/monster/Dodoria)
> loc=locate(z,y,z)
>

Problem description: loading sagas.dme
mobs.dm:2636:error:1200:value not allowed here
mobs.dm:2638:error:loc:undefined var
mobs.dm:2636:error::empty type name (indentation error?)

sagas.dmb - 3 errors, 0 warnings (double-click on an error to jump to it)


 spawn(1200)
reaspawn_npc(mob/monster/Dodoria)
loc=locate(z,y,z)


Try this?
Post more of your code too.
In response to Lcooper
I get the same errors, and that's all of the code.
In response to PerfectGoku
If that's all of the code, of course you're getting problems, you don't have anything.

But seriously, by "more code", he means more code above the problem code. Such as the whole proc this excerpt of code is from.
In response to Kaiochao
What I have above is a code for something else.
In response to PerfectGoku
So everything in the code you showed is untabbed, under no types?
In response to Kaiochao
idk, thats what I was told to put for npcs to respawn.
In response to PerfectGoku
Note: I'm afraid you actually need to learn programming first before jumping in to program a game, Novice Programmer. Additionally, using code you don't understand will only be counterproductive in the long run. Don't do it, or you are bound to fail.

PerfectGoku wrote:
idk [...]

Then learn, so you do know?
In response to PerfectGoku
PerfectGoku wrote:
idk, thats what I was told to put for npcs to respawn.

Whoever gave you that code doesn't know what they're doing, so a good start would be to ignore future advice from them. It has syntax errors and major indentation flaws. There isn't any way to salvage it, unfortunately, because it bears no apparent relationship to any of your other code.

However, even if someone gave you a perfectly good piece of code to work with, you still have to make sure you know how to put it in your game and make adjustments as needed. Making a game is not merely a matter of assembling snippets of code, any more than throwing a bunch of LEGO bricks in a bag and shaking it will make a castle. You have to know where to put each piece, avoid blocking the hinges, etc. So in order to put good advice to use once it comes along, you're going to need to learn the basics of DM programming. You'll find some very helpful links and tutorials here.

Lummox JR
In response to PerfectGoku
spawn(1200) Respawn(/mob/Dodoria)

mob/proc/Respawn(A)
var/mob/B=new A
B.loc=locate(x,y,z) //or whatever


Code like this would work...If used in the right way
In response to Kaioken
I'm an iconer/mapper not a coder.
I just did what my coder told me to put.
In response to PerfectGoku
Your coder fails.
In response to Lcooper
You failed to look at the date before posting.