ID:171264
 
how do i make it so it counts all of a certain object on each z level and sets each one as a variable
Strawgate wrote:
how do i make it so it counts all of a certain object on each z level and sets each one as a variable

Not sure what you mean by "sets each one as a variable". Can you be more specific as to what you need?

Lummox JR
In response to Lummox JR
ok lets say my object is poop

on Z1 it finds all of poop and sets a variable to how many there are on that z level.

on z2 it finds all of poop and sets a variable to how many there are on that z level.

and so on
In response to Strawgate
Well, there are multiple ways to do it.

One of the easiest and fastest ways would be something like:

var/list/poop=list()
obj
poop
New()
pooplist["[src.z]"]++
mob/verb/count(n as num)
if(pooplist["[n]"])
world<<pooplist["[n]"]