- Joined
- Sep 25, 2013
- Messages
- 793
I'm using this system by rulerofiron99 to add an additional resource into my game. How can i use this system to make researches cost this new resource type?
https://www.hiveworkshop.com/threads/gui-custom-resource-harvest-system-1-05.225610/
Here is what i tried to do, but it doesn't work:
https://www.hiveworkshop.com/threads/gui-custom-resource-harvest-system-1-05.225610/
Here is what i tried to do, but it doesn't work:
-
Second Age
-

Events
-


Unit - A unit Begins research
-
-

Conditions
-


(Researched tech-type) Equal to Second Age (Elves)
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




OHS_OilResource[(Player number of (Owner of (Researching unit)))] Greater than or equal to 200
-
-



Then - Actions
-




Set OHS_OilResource[(Player number of (Owner of (Researching unit)))] = (OHS_OilResource[(Player number of (Owner of (Researching unit)))] - 200)
-
-



Else - Actions
-




Game - Display to tempForce the text: |cffff0000Error|r -...
-




Unit - Order (Researching unit) to Stop
-
-
-
-


