turf/Battle var/Occupied //icon='Whatever.dmi'' Area1 Grass_Battle var/Encounter = rand(2,7) //icon_state="Grass" Entered(mob/M) if(istype(M,/mob)) if(Encounter == 3) usr<<"You have run into a Battle!"
Problem description:
Battle.dm:19:error: icon_state: expected end of statement
-Whats wrong with the rand()? I loked it up in the Help/Manual (F1) and I've got ir correct. Is it possible to set a variable like that?
You can't set variables like that at compile time. Procedures like rand() only get executed at runtime(). Try calling it in New() or somewhere else, instead.