Zones
var/MonsterSpot1
var/MonsterSpot2
var/MonsterSpot3
var/MonsterSpot4
var/MonsterSpot5
var/SpellandTrapZone1
var/SpellandTrapZone2
var/SpellandTrapZone3
var/SpellandTrapZone4
var/SpellandTrapZone5
proc
SetUpField(mob/M)
M = usr
if(M.Dueling != TRUE) return
switch(M.dir)
if(NORTH)
src.MonsterSpot1 = locate(M.x, M.y + 2, M.z)
src.MonsterSpot2 = locate(M.x+1,M.y+2,M.z)
src.MonsterSpot3 = locate(M.x-1,M.y + 2,M.z)
src.MonsterSpot4 = locate(M.x-2,M.y + 2,M.z)
src.MonsterSpot5 = locate(M.x + 2,M.y + 2,M.z)
if(SOUTH)
src.MonsterSpot1 = locate(M.x ,M.y-2, M.z)
src.MonsterSpot2 = locate(M.x +1, M.y-2,M.z)
src.MonsterSpot3 = locate(M.x-1, M.y-2,M.z)
src.MonsterSpot4 = locate(M.x-2,M.y-2,M.z)
src.MonsterSpot5 = locate(M.x +2,M.y-2,M.z)
if(WEST)
src.MonsterSpot1 = locate(-2, 0, 0)
src.MonsterSpot2 = locate(-2, 1, 0)
src.MonsterSpot3 = locate(-2, -1, 0)
src.MonsterSpot4 = locate(-2, -2, 0)
src.MonsterSpot5 = locate(-2, 2, 0)
if(WEST)
src.MonsterSpot1 = locate(2, 0, 0)
src.MonsterSpot2 = locate(2, 1, 0)
src.MonsterSpot3 = locate(2, -1, 0)
src.MonsterSpot4 = locate(2, -2, 0)
src.MonsterSpot5 = locate(2, 2, 0)
__________________________________________________
//somewhere in code
var/Zones/zones = new
if(usr.Monsters_Played == 0)
src.loc = locate(usr.zones.MonsterSpot1)
Problem description:
Hi, I found a bug with my original summoning verb for cards, so I remade it. I decided to make it so that when you start the duel, 10 zones appear in front of you(based on dir and how many tiles apart from player.) For some reason though, every time I go to summon, it does not appear on the zone I pointed it towards. I was wondering if someone could help me on why the cards are not appearing on the zones. (Also, this is my first time using Datums)