| 12-22-2006, 09:53 PM | #1 |
how do u make it if a unit drops an item on a region, give that unit a certain amount of gold. |
| 12-22-2006, 09:58 PM | #2 |
Well, you wouldn't give the unit gold, you'd give the player owning the unit gold. That is done by doing Player - Set Player Property - Set (Owner of (Triggering unit)) (gold) to (...) you get the point. |
| 12-22-2006, 10:08 PM | #3 |
yea my bad lol typo :) |
| 12-22-2006, 10:12 PM | #4 |
[off-topic]xombie your sig should say function XombieRep takes rep returns nothing I think...[/off-topic] My firefox messed up, I was just going to say that, and that Coreybowen999 probably was stumped at the region part, not the gold. |
| 12-22-2006, 10:18 PM | #5 |
i wanted to make my sig somewhat elaborate. its causing alot of fuss though so i'll leave it =P |
| 12-23-2006, 01:25 AM | #6 |
After looking through the trigger editor, I don't think there were any events for when an item enters a region, however there's probably two other ways you could do this: 1. Have the trigger go off, instead, when a unit enters the region and remove the item from the user. 2. Have a periodic timer that picks every item in the region, checks some kind of variable or what-not to see who was the last unit to have the item, and then does actions appropriately. You could probably just set the item's custom value when it's picked up to the player number of the owner of whichever unit picked it up. |
| 12-23-2006, 07:20 PM | #7 |
Trigger: Ok now, if unit is standing on 'Lordaeron Summer - Dirt' and he drops cheese, he will get 30 gold, if he drops shadow orb, he will get 60 gold, if he drops anything else wont give any gold. All items that have been droped on 'Lordaeron Summer - Dirt' will be removed. Sugestions to people that posted above me; Think outside the box. |
| 12-24-2006, 04:32 AM | #8 |
Actually, I was going to do it that way. But is his map actually going to have the region so "easily spotted"? If it is, then sorry, I could of done that earlier (honestly). |
