I have a script that generates three different kinds of handouts. I would like to have the handouts named Type A #1, Type A #2..., Type B #1, Type B #2..., and Type C #1, Type C #2... How can I accomplish this? The closest I've seen is naming them after a player, such as: DE.name = msg.who + " Dead Location #" + (findObjs({_type: "handout", controlledby: msg.playerid}).length + 1)
But when I do this, they all come back with the same name: Joab (GM) Dead Location #1 What I am doing wrong?