You may be able to do this with fairly simple triggers, try using the "Button Pressed" event. For changing the units' properties, there's an action for that too (Set Unit Property). To determine the mineral amount, you could write a little formula using the units' current properties.
I haven't explored these functions, so they may be more complicated than this, or not work at all.
Yes, I was able to fix some of my actions by using a player "reference". However, I am still having difficulty with an action. The event in the trigger is a user pressing a key. I want to set a variable array to the triggering player's ID/number, but that function is grayed out - which means it won't work, if I'm not mistaken. Any idea how to fix this, or are there any workarounds?
I am an experienced map maker (in Warcraft III). I may be missing something obvious, but I can't find it in all the expected places.
I want a player's ID number. I am using it in a variable array; each player has a unit and an array variable is set to each of them. However, when I try to set a player's ID as the array key, I cannot find any Function or Preset that would do it. The closest I've found is "Triggering player", which is in the Integer functions list, but it does not appear to work. If I use "1" instead of the "Triggering player", the action DOES works instead.
I'd like to apologize in advance if I discover the answer after someone posts, and before I post my answer.
0
Did you copy the ability directly from the campaign map?
0
You may be able to do this with fairly simple triggers, try using the "Button Pressed" event. For changing the units' properties, there's an action for that too (Set Unit Property). To determine the mineral amount, you could write a little formula using the units' current properties.
I haven't explored these functions, so they may be more complicated than this, or not work at all.
0
Yes, I was able to fix some of my actions by using a player "reference". However, I am still having difficulty with an action. The event in the trigger is a user pressing a key. I want to set a variable array to the triggering player's ID/number, but that function is grayed out - which means it won't work, if I'm not mistaken. Any idea how to fix this, or are there any workarounds?
Thanks for the help so far.
0
I am an experienced map maker (in Warcraft III). I may be missing something obvious, but I can't find it in all the expected places.
I want a player's ID number. I am using it in a variable array; each player has a unit and an array variable is set to each of them. However, when I try to set a player's ID as the array key, I cannot find any Function or Preset that would do it. The closest I've found is "Triggering player", which is in the Integer functions list, but it does not appear to work. If I use "1" instead of the "Triggering player", the action DOES works instead.
I'd like to apologize in advance if I discover the answer after someone posts, and before I post my answer.
Thanks!