Conditions -
(Custom value 3 of (Triggering unit)) != 1.0
Actions -
UI - Display (Name of (Unit type of (Triggering unit))) for (All players) to Chat area
Player - Modify player (Triggering player) Minerals: Add (Minerals cost of (Unit type of (Triggering unit)))
Unit - Set (Triggering unit) custom value 3 to 1.0
So the goal of this is to refund the cost of a unit which enters a region, which it does but only for built in units NOT custom units. I have checked that the CUnit_CostResource on the custom units is set and it doesn't even work with duplicated unedited units. Is this a bug or do i not have something set correctly?
Any help is appreciated. Thanks!
0
Currently i have in my map a trigger a follows:
Events - Unit - Any Unit Enters P1_75_Line
Conditions - (Custom value 3 of (Triggering unit)) != 1.0
Actions - UI - Display (Name of (Unit type of (Triggering unit))) for (All players) to Chat area Player - Modify player (Triggering player) Minerals: Add (Minerals cost of (Unit type of (Triggering unit))) Unit - Set (Triggering unit) custom value 3 to 1.0
So the goal of this is to refund the cost of a unit which enters a region, which it does but only for built in units NOT custom units. I have checked that the CUnit_CostResource on the custom units is set and it doesn't even work with duplicated unedited units. Is this a bug or do i not have something set correctly? Any help is appreciated. Thanks!