turf/dirt
Entered(A)
var/encounterchance=100 // 5% seems to be best
if(ismob(A))
var/mob/M=A
if(M.client)
if(prob(encounterchance))
M.battlecave = maps.copy(2)
M.loc = locate(12, 9, M.battlecave.z)
M << "HI"
mob
Stat()
stat("loc", "[x], [y], [z]")
var
Map/battlecave
Problem description:
So the above is a combo of two codes, both of which work just fine on their own, but when combined give me this when I try to run it:
loading The After Zone.dme
loading LoginMenu.dmf
battlecode.dm:10:error: naps.copy: undefined var
Turfsnstuff.dm:12:error: m.loc: undefined type: m.loc
battlecode.dm:10:error: M.battlecave: undefined var
battlecode.dm:11:error: M.battlecave.z: undefined var
battlecode.dm:9:warning: battlecave: variable defined but not used
The After Zone.dmb - 4 errors, 1 warning
I have been fiddling with this code for almost twelve hours with NO luck. I'm trying to get it to basically have you walk around in the dirt turf, and randomly youll encounter a point where it teleports you to a new z level map which is a copy of a dungeon on a different Z level. Again both codes work on their own seperate, but when combined like that, they spaz right out. It probably some really silly mistake, but could someone please help me get this code to work?
What is the library you are using to make the dynamic maps?