I'm trying to retrieve the minerals cost of a unit that enters a region with the following line:
Variable - Modify Value Count Of Currently Waiting Units for Player 2: + (Minerals cost of (Unit type of (Triggering unit)))
but the variable remains at 0 despite me making absolutely sure that the referenced resource value isn't 0 in the data editor (and yes i'm sure that i'm checking the right unit :P) . Why?
I ran a quick test map, and the trigger seems fine. Attaching map...
Are you using a custom unit?
Edit: Changed map to use the modify variable trigger as well. Still have no problems. Either your test function is printing the wrong variable or you are in fact missing a value somewhere.
I'm trying to retrieve the minerals cost of a unit that enters a region with the following line:
Variable - Modify Value Count Of Currently Waiting Units for Player 2: + (Minerals cost of (Unit type of (Triggering unit)))
but the variable remains at 0 despite me making absolutely sure that the referenced resource value isn't 0 in the data editor (and yes i'm sure that i'm checking the right unit :P) . Why?
I ran a quick test map, and the trigger seems fine. Attaching map...
Are you using a custom unit?
Edit: Changed map to use the modify variable trigger as well. Still have no problems. Either your test function is printing the wrong variable or you are in fact missing a value somewhere.
I am using a custom unit. I could post the map up if i needed to, since i'm totally stumped.