|
|
#16 |
|
User
Join Date: Apr 2013
Posts: 14
|
Sorry,What's wrong with my sentence.my mother language is not English. I mean,first,I have a lot of footmans,and I created a unit array variable named U[ ].Second,I set U[1]=the footman 1,
set U[2]=the footman 2 until set U[n]=the footman n.Now,one of footmans trigger a event.My question is how to get the index of triggerunit. Last edited by shenglong : 04-23-2013 at 01:27 AM. |
|
|
|
| Sponsored Links - Login to hide this ad! |
|
|
|
|
#17 | |
|
Procrastination Incarnate
Development Director
|
Quote:
One way would be to use a loop: Trigger: Another, more efficient method would be to use a hashtable. I haven't been able to figure out how to use those in GUI so the only examples I can give are in (v)JASS. |
|
|
|
|
|
|
#18 |
|
User
Join Date: Apr 2013
Posts: 14
|
Another question,there are some items on the map.I clicked on the item.it doesn't trigger event.how to get (reflex) (respond) the click item event.
|
|
|
|
|
|
#19 |
|
Procrastination Incarnate
Development Director
|
When you say "click", do you mean select the item or order a unit to pick up the item? There is no event for the former, but the latter should be detectable with this configuration:
__________________ |
|
|
|
|
|
#20 |
|
User
Join Date: Apr 2013
Posts: 14
|
I was referring to the former.Is there any way to achieve the former?
Last edited by shenglong : 04-24-2013 at 03:54 AM. |
|
|
|
|
|
#21 |
|
default string
|
Do you mean select the item while it's on the ground, or use the item?
|
|
|
|
|
|
#22 |
|
User
Join Date: Apr 2013
Posts: 14
|
What I mean is select the item while it's on the ground.
|
|
|
|
|
|
#23 |
|
Procrastination Incarnate
Development Director
|
As I said, there is no event for players selecting items so I see no way of detecting it.
__________________ |
|
|
|
|
|
#24 |
|
User
Join Date: Apr 2013
Posts: 14
|
A unit suffered from the skill of Impale.why can't suffer the second on this Buff?
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
|
Donate |