mob
var
list
spells = list()
mob
Stat()
statpanel("Spells")
stat(src.spells)
mob
verb
Test()
src.spells += /obj/Spells/Force_Field
Is there anything wront with my coding or am I missing something? Thanks for helping!
ID:175140
![]() Jun 6 2003, 3:17 pm
|
|
In my game you get spells and I want the player to be able to look at his spells in the spells statpanel, but the coding I made isnt working...Hree's what I put:
mob Is there anything wront with my coding or am I missing something? Thanks for helping! |
I changed it to this:
mob But it still doesnt work...How can I fix it? |
Koolguy900095 wrote:
I changed it to this: mob Nope, that won't work. A list is not an atom; it's not a "physical" location for an obj. You can't set the obj's loc var to the list. Atoms aren't located in lists; they're located in other atoms. Any number of lists, though, may refer to the atom. A more correct form would be this: spells += new/obj/Spells/Force_Field()
Think of an atom like a box, and a list like an address book. Lummox JR |
Lummox JR