for(var/turf/T in world)
var/randomization = rand(0,99)
if(istype(T, /turf/floor/wood))
if(randomization == 0)
var/turf/trap/spike/G = new(T.loc)
This is the section of code where the problem occurs. When I run the verb in the game, I get this error:
runtime error: bad loc
proc name: Begin Game (/mob/verb/Begin_Game)
usr: MyName (/mob/player)
src: MyName (/mob/player)
call stack:
MyName (/mob/player): Begin Game()
...and I don't understand how to fix it. Thanks for any help in advance.
Heh,First of all your error is in the Begin Game verb.