| 12-24-2002, 09:05 AM | #1 |
we tried to make some custom items, like a stone token w/ a trigger so when you use it it turns the rock golem hostile to you. however, nothing special happens (ie the item works normally). we were using Last Created Unit to specify the golem and assume that's the problem. how do we refer to units created by items? one way to do it would be if we could make items that have a Do Nothing ability (with charges, and 2 versions, one that targets a point and one w/ no target) and then use triggers to do what we want when the person uses them. then we could just create our own unit and make it hostile easily. is that possible? also, randomly, if you summoned 2 wolves at once w/ the feral spirit spell, you can't use Last Created Unit to get *both* of them, is there a workaround? (we just made both one by one and didn't use the spell at all....) ty, fr0gge, curi |
| 12-24-2002, 10:02 AM | #2 |
Guest | Event: A unit enters Playable Map Area Condision: Owner of Entering Unit equal to Player[#] Entering unit equal to Rock Golem Actions: Change ownership of entering unit to Neutral Hostile Damnit why am I so good at triggers? I should get a position... |
| 12-24-2002, 12:59 PM | #3 |
thanks, that will work for the specific problem, but it doesn't really answer the questions we asked. I suppose in general you could use that technique to select the new unit, but what about refering to them? For example, in a map with a shop that sold those faulty stones, you could technically get a lot of rock golems...say instead of making them hostile you wanted to select them after the fact? How would you do that? I would say make a variable but then you don't know how many there will be. and this technique wouldn't help with wolves (assuming that they arrive at the same time) unless you wanted them both to do the same thing. anybody know how to do those things? fr0ggE |
| 12-24-2002, 02:18 PM | #4 |
Dude, its not last created item. Golems are units, so you want to use summoned unit, not created item. |
