Turns
proc
Turn(mob/Opponent)
var/mob/L = usr.Target
if((usr.Speed + usr.Speed_Mod) > (L.Speed + L.Speed_Mod))
usr << "Its your turn!"
usr.Choose()
if((usr.Speed + usr.Speed_Mod) < (L.Speed + L.Speed_Mod))
usr << "Its [L] turn!"
L.Turn = 1
L.EChoose()
else
usr << "Its [L] turn!"
L.Turn = 1
L.EChoose()
Problem description:
I get this error...
runtime error: Cannot read null.Speed
proc name: Turn (/Turns/proc/Turn)
source file: Datums.dm,17
usr: Julian (/mob/Player)
src: /Turns (/Turns)
usr.loc: Weed (32,47,1) (/turf/Weed)
call stack:
/Turns (/Turns): Turn(null)
Weed (32,47,1) (/turf/Weed): Entered(Julian (/mob/Player), Weed (31,47,1) (/turf/Weed))