ID:261931
 
    randomencounter1(mob/M as mob)
var/turf/battlearea/T
if (prob(5))
for(T in world)
if(!T.occupied)
T.occupied = 1
M.oldlocx = M.x
M.oldlocy = M.y
M.oldlocz = M.z
M.battlearea = T
spawn(1)M.Move(usr.battlearea)
M.dir = NORTH
M.oldbattlefield = M.onbattlefield
M.onbattlefield = null
for(var/mob/L in src.group)
if(L==src) continue // So the leader wont be placed behind
if(L.Move(locate(src.x-1,src.y-1,src.z)))
break
if(L.Move(locate(src.x+1,src.y-1,src.z)))
break
if(L.Move==(locate(3,5,8)))
break
if(L.Move==(locate(5,5,8)))
break
<b>M << "<font color=white>Fight!"
M << "<font color=white>Click on the monster you wish to attack to start"</b>
var/P = pick(1,2,3,4,5,6)
switch(P)
if(1)
spawn(1)new /mob/enemy/Wolf(locate(M.battlearea.x,M.battlearea.y+3,M.battlearea.z))
if(2)
spawn(1)new /mob/enemy/Wolf(locate(M.battlearea.x,M.battlearea.y+3,M.battlearea.z))
spawn(1)new /mob/enemy/Wolf(locate(M.battlearea.x-1,M.battlearea.y+3,M.battlearea.z))
if(3)
spawn(1)new /mob/enemy/Wolf(locate(M.battlearea.x,M.battlearea.y+3,M.battlearea.z))
spawn(1)new /mob/enemy/Wolf(locate(M.battlearea.x-1,M.battlearea.y+3,M.battlearea.z))
spawn(1)new /mob/enemy/Wolf(locate(M.battlearea.x+1,M.battlearea.y+3,M.battlearea.z))
if(4)
spawn(1)new /mob/enemy/DarkWolf(locate(M.battlearea.x,M.battlearea.y+3,M.battlearea.z))
if(5)
spawn(1)new /mob/enemy/Wolf(locate(M.battlearea.x,M.battlearea.y+3,M.battlearea.z))
if(6)
spawn(1)new /mob/enemy/Wolf(locate(M.battlearea.x,M.battlearea.y+3,M.battlearea.z))
spawn(1)new /mob/enemy/Wolf(locate(M.battlearea.x-1,M.battlearea.y+3,M.battlearea.z))
return 1
return 0


loading Synthetic Dreams.dme
loading Script.dms
combat.dm:52:error::invalid expression

Synthetic Dreams.dmb - 1 error, 0 warnings (double-click on an error to jump to it)

Alright, i fixed the normal errors, but all thats left is:

M << "<font color=white>Fight!"
M << "<font color=white>Click on the monster you wish to attack to start"
var/P = pick(1,2,3,4,5,6)
switch(P)
I don't quite understand what your trying to do here, could you repost that with closed html tags and dm tags.

EDIT: I think I see what your doing here. The variable move is not defined under mob/var, but instead under a tree farther indented(perhaps mob/player, who knows), and the missing expression is because your if(L.move=, istead of if(L.move==

Hope that helps.
In response to Jotdaniel (#1)
the html tags made it white, so i made sure they didn't work. And what do you mean dm tags? -Has never gotten that-

I'm trying to make it so when your in a party you spawn next to the leader rather then under, or over him/her.

The reason it looks like that is because i had to have the multiple monsters also.
In response to Karasu Kami (#2)
Reread my first post, I edited it with an answer. And dm tabs go like so: <> with dm inside, and to close <> with /dm inside. they format the code so it doesnt wrap around, and so that html doesnt effect the code.
In response to Jotdaniel (#3)
I see, thats what i figured at first but it never worked?
In response to Karasu Kami (#4)
Im thinking that bold tag before line 52 is messing something up.

edit: Your indentation gets a little screwy in what you post at what im guessing is somewhere around line 50, you might want to look at that as well.
In response to Jotdaniel (#5)
I fixed all the errors, but it doesn't even work. Strange, no, just shows you why i don't code.
In response to Karasu Kami (#6)
I fixed all the errors, but it doesn't even work. Strange, no, just shows you why i don't code.

Fixing syntax errors and getting source code to compile is the easy part. Finding and solving logic errors is much worse.