Been a while since i posted here, but coming on a problem I keep running into, have a vending machine sort of device that is spiting out figurines of various species, I'd like to be able to give these to a NPC and if a certain one is used they'll get a reward..
I'm using the guide here
viewtopic.php?f=18&t=6263&p=42445&hilit=cloned+objects#p42445for getting the generation going and having the alias's with all the names right, species attributes of each instance set fine when looking through the debugger.
My problem is I'm unable to figure out how to get the NPC to check attributes on whatever clone instance is given him, The player will not know which number it happened to be. the Lion figurine could be figurine1 or figurine 21 afterall
Is there some way to let a script look for a range of object types, such as figurine# perhaps and if one with the proper attribute is founf more on?
Or is there a way i can get the give function to just look at the object being used to trigger the action.. something like "This" perhaps