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!
1. Im trying to create a system where tech requirements are based on X number of units (eg. Captain requires 5 Footmen)
In the Obj Editor, setting "Requirement = 'Footmen' and Level requirement = 5" actually works.
However in the UI, it simply says 'requires Footmen' and doesn't include the number.
One workaround is to have the req. be a dummy unit named '5 footmen' - however this gets very object intensive when expanded to an entire techtree.
1. Can't think of any way that would be less difficult than just creating a few dummy units, except simply specifying the number that players need in the tooltip
2. You can use "set level of research for player" to increase or decrease, it wasn't the case for a while but it's been changed either by a patch or by reforged, can't remember
1. Name the unit "5 Footman" and do this? On second thought, don't use this trigger. Doing this will still leave you with a player message that reads "Completed: 5 Footman" every time a Footman is made. I edited my comment below and included a demo that demonstrates everything I learned about this functionality.
NameFootman
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Trained unit)) Equal to 5 Footman
Actions
Unit - Set Name of (Trained unit) to Footman
Edit: This function of the Object editor is only an option if you would have the same quantity required for each Unit Type that is required.
The short summary if my findings:
If you want to require 5 Footman and 5 Rifleman to make a Knight, you can.
If you want to require 5 Footman and 4 Rifleman to make a Knight, it will be 5 Rifleman or 0.
If you want to require 5 Footman and 1 Blacksmith to make a Rifleman, it will be 5 Blacksmiths or 0.
This is one simple option, which would not require you to change the name or to use dummy units with dependency equivalents:
You do still need to set the "Techtree - Requirements - Levels" field to 5. I did a little bit of playing around with this feature and there are some key functionality notes I've found, this could be useful:
If there are multiple Unit Types in the "Techtree - Requirements" field and only one integer in the "Techtree - Requirements - Levels" field, then it will be required that you have that many of each of those Unit Types, so these examples, will both require Five Footman and Five Townhalls:
If there are multiple Unit Types in the "Techtree - Requirements" field and multiple integers in the "Techtree - Requirements - Levels" field, then all requirements except the first listed Unit Type and integer will be ignored, in these examples, Three Footman are required and Zero Townhalls:
If the first integer is Zero in the "Techtree - Requirements - Levels" field, then there is no requirement at all:
With all that being said, unless the unit needs to require the same number of units from all listed types, this won't be a valid option, but otherwise it's an interesting thing to think of how to manipulate. Unfortunately, I've never had luck changing Unit Array Fields with triggers/ code, but that could change! I made a demo map that proves/ demonstrates everything I said here and causes the user of the demo to see first-hand why they shouldn't change the Unit's name with triggers.
Here is how I made it look nice for the demo:
To hack the tech-requirement tooltip when more than one type of unit is required (you must require the same quantity of each type!):
To achieve a tooltip like this:
In the Object Editor, make a Dummy Unit and Set the "Techtree - Dependency Equivalents" fields to any applicable units and set the Dummy Units name. Here is an example of one of mine from the demo map I made:
For the Unit that will have techtree requirements (all of equal quantities!) be sure to set the requirements in the right order, with the dummy listed once at the top, and the rest of the required units beneath it, like this:
To hack the tech-requirement tooltip when just one type of unit is required:
To achieve a tooltip like this:
In the Object Editor, make a Dummy Unit and Set the "Techtree - Dependency Equivalents" fields to the real unit that the dummy is meant to represent and set the Dummy Units name with the Quantity included in the name. Here is an example of one of mine from the demo map I made notice my dummy farm is called "Twenty-One Farms", because you have to have 21 farms to train a peasant in this demo:
For the Unit that will have a techtree requirement of a given quantity of a unit-type, set it's "Techtree - Requirements" and "Techtree - Requirements - Levels" fields as desired. Example:
If you prefer the look of the second second example, but have want to require multiple unit-types, you can do that instead (but you still have to require the same number of each type of unit). Example:
To achieve a tooltip like this:
Do this for each required unit in the Object Editor (see above examples for more detailed explanation).
For the Unit that will have a techtree requirement of a given quantity that will be required for all listed unit-types, set it's "Techtree - Requirements" and "Techtree - Requirements - Levels" fields as desired. Example:
Something that comes to mind is like the old custom games from SC1 where you could "combine" units by putting them on a beacon. So put 5 footmen in a region then it creates a captain.
Something that comes to mind is like the old custom games from SC1 where you could "combine" units by putting them on a beacon. So put 5 footmen in a region then it creates a captain.
That sounds like it could be useful/ a worthwhile system, I wonder if there is already such a system. I think I remember seeing "unit fusion" on IcemanBo's list of systems that have been broken by newer versions of WC3.
Either way, if you do want something like this, there are a few ways I could see it being done, maybe the easiest would be with a dummy ability that the beacon could have, or maybe you'd rather it just automatically merge them when enough units enter a given range.
BUT I think the most appropriate thing to do would be to start a new thread that details how you would want that system to be made.
I just don't want to blow this thread up into off-topic territory.
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.