ID:169939
![]() Apr 9 2005, 11:49 am
|
|
Is it possible to add every obj in to a list without having created it on the map first?
|
![]() Apr 9 2005, 3:01 pm
|
|
Just don't give it a location to be created at.
|
mob I don't get the "yes" debug message. |
var/list/All = typesof(/obj/swords) Still no message. |
typesof() doesn't return a list of objects it returns a list of typepaths.
Try something like: mob |
Thanks for the help.
Two more questions; for(var/obj/a in All) I get the do it message but I also get a runtime error: runtime error: Cannot create objects of type /obj/swords/coolswords. proc name: sort (/mob/proc/sort) source file: Procs.dm,27 usr: DeathAwaitsU (/mob) src: DeathAwaitsU (/mob) call stack: DeathAwaitsU (/mob): sort() DeathAwaitsU (/mob): start() Line 27 is new a. Also; var/x = "god" Is there any way to automaticaly adjust the case of the first letter of that variable to be a capital? |
DeathAwaitsU wrote:
Thanks for the help. > for(var/obj/a in All) I get the do it message but I also get a runtime error: First of all 'a' is an object here, or at least it should be. Next, 'new a' alone won't do anything. You need something like... 'a = new a.type' Also; > var/x = "god" Is there any way to automaticaly adjust the case of the first letter of that variable to be a capital? var/x = "god" |
var/x = "god" /me 'kicks Yota. =P -Ryan |
var/x = "god" /me 'kicks Ryne Rekab. =P -YMIHere |