ID:177266
 
proc/storygen(val,location)
var/obj/story/st = new st(location)
st.value = val



blah blah.dm:40:error:st: compile failed (possible infinite cross-reference loop)
blah blah.dm:41:error:st.value: compile failed (possible infinite cross-reference loop)

blah blah.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)

What the dillio?

-ST

PS - Yeah, I decided to work on my 4k project. Should turn out to be fun.... if I can pull it off right.
You're trying to use a variable before it's been created. Simply use var/obj/story/st = new(location).