One way would be to see what players that got the this unit selected upon ordering. However I'm not quite sure if it'd be able to filter when more then one are selecting the unit.
I just thought of a possible way to do this. One way to do this is to base all the abilities off Charge Gold and Lumber. Luckily, this ability allows you to change the Base Order Id, so you have multiple copies on one unit.
Have a trigger for the Ability is being cast, and record the gold value for each player that has that unit selected. On the Starts the effect of an ability (which I think will happen after the gold is charged) check to see which player's gold has changed.
Problems:
1. Does the gold get charged to the player that used the ability or the owner? If the latter, then this is no good.
2. Can Charge Gold be given a negative value? If so, that'd work better as the player could have 0 gold and this would still work.
Another possibility is to give the unit the Sell Units ability, and trigger it based off buying a unit disguised as an ability, but that has a lot of side effects.
Ok... you helped me in an unexpected way (making abilities look like items) but unfortunately the gold thingy is for the owner of the triggering unit and not for the player who actually triggered the spell :/
and they can be detected =D... as soon as i finish my research ill post the map for you to see ^^
thnx a lot rainther
EDIT: I couldn't identify the triggering player, But i could create the item i wanted in the hero i wanted. The fact is, that i don't know how will this behave in multiplayer that is what i want :S
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory
I will be AFK for a couple of days you guys hold down the fort while I am gone. I will be checking in on my phone but that will severly limit me. Be back saturday!