I must not be doing lists right. Consider the following:
var/list/thelist = src.atmosphere
src << src.atmosphere[rand(1,thelist.len)]
Compiling the above will result in an error of "bad argument definiton" for the line AFTER atmosphere.Add(). One error for every argument I put into Add().
If I comment the Add() line out and compile, running Atmosphere() in the game will result in:
Cannot read null.len.
proc name: Atmosphere (/area/proc/Atmosphere)
source file: cerulareas.dm,331
usr: Zilal (/mob/gm)
src: /area/Test_room (/area/Test_room)
call stack: atmosphere
Adding a text value to list/atmosphere during runtime (with the + operator) has no result, but generates no error. What am I missing?
Apr 11 2000, 10:36 am