mob/verb/startsequence()
for(var/area/battles/A)
if(locate(usr) in A)
makebattlelist(A)
sleep 1
// sortturn(A)
sleep 1
//nextturn(A)
proc/makebattlelist(var/area/battles/B)
for(var/mob/M in world)
if(locate(M) in B)
world<<"adding [M.name]"
B.fighters+=M
world<<"[M.name] Added to battle!"
sleep 20
world<<"sleeping 2 seconds"
I have the battle areas labbled 1 - 10 IE.. area/battleareas/battle1
(2,3,4,5,6,7,8,9,10)
well heres my results....
adding lizardman
lizardman Added to battle!
runtime error: type mismatch
proc name: makebattlelist (/proc/makebattlelist)
source file: battles.dm,29
usr: Bladeshifter (/mob)
src: null
call stack:
makebattlelist(the battle1 (/area/battles/battle1))
Bladeshifter (/mob): startsequence()
sleeping 2 seconds
adding Bladeshifter
--You're using locate() incorrectly. You just want if(usr in A).
--You're using sleep() incorrectly.
--In the makebattlelist(), just loop with a for() threw mobs in B instead...
You need to read the guides, tutorials and info on the Resources panel on the left of this page. Namely look up things in the DM Reference before you use them..