Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
In one of the maps, I saw a research that allows a unit to be trained with less food, thans to a research. (ex: Frost Wyrm - 7 food; research complete => Frost Wyrm - 5 food)
Can anyone help me with this?
You may use triggers to do this. You will need an exact copy of your unit (say, a Frost Wyrm), which uses a different amount of food, and you will also need an upgrade which does nothing (let's call it "Food Upgrade").
Then use triggers to replace Frost Wyrm [7 food] with Frost Wyrms [5 food]. This must apply for units already present in the map and units that have not been trained yet.
Something in that area:
Food upgrade trigger
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to Food Upgrade
Actions
Joueur - Make Frost Wyrm [5 food] Available for training/construction by (Owner of (Researching unit))
Joueur - Make Frost Wyrm [7 food] Unavailable for training/construction by (Owner of (Researching unit))
Set GroupVar = Pick every unit in (Units of type Frost Wyrm)
Unit Group - GroupVar and do and do (Unit - Replace (Picked unit) with a Frost Wyrm des glaces using Difference with the old unit relative life and mana)
Custom script: call DestroyGroup(udg_GroupVar)
I didn't test it out, but I suppose it should do the trick.
I actually tried that, too, but the only option useful was "Units of type Frost Wyrm" and that's it, without "Pick every unit in". Also, is there a version difference? Because in my version there's no Unit Group that accepts a variable for the GroupVar variable. @Love Seeker: I'll try that, too.
"Units of type" is correct. It's a typo because Sieben translated his from French WE to English. The "pick every unit" syntax is for unit group actions where you don't put in into a variable.
You did not unticked the upgraded frost wyrm in techtree, do you? It is in Scenario->Techtree Properties, tick Use Custom Techtrees, Select All Players and then uncheck your upgraded wyrm.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.