• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Few Questions about units

Status
Not open for further replies.
Level 1
Joined
May 10, 2009
Messages
3
First, I want to say Hi, since I just registered today.

I want to ask these questions:
1. How we can make a finished research disables other available research? I don't find remove upgrades/research trigger.

Ex:
We need to research an unit before producing them. The unit choice is swordsman and archer. If we research swordsman, we'll never able to research/produce archer, and if we research archer, we won't be able to research/produce swordsman permanently. The research is in one building (research center).

2. How we make a building produces random unit quality? Because in an army, there are strong soldiers, and there is weaker ones.

So, if we click to produce 1 swordsman, the output may be like this:
50% with 20 damage, 5 armor, 400 HP (normal)
25% with 27 damage, 7 armor, 450 HP (strong)
25% with 15 damage, 4 armor, 360 HP (weak)

Edit:

Additional question, I found many similar fields at the change gameplay interface to make a description in armor/attack type(when we put our cursor on armor/attack type if we select an unit) like this(including the color):

Damage received from:
Normal: 150%
Magic: 100%
Pierce: 65%.

So, which one to change, and how to change them like the example above? I can't color the letters and I can't enter them.

Thank you.
 
Last edited:
Level 5
Joined
Sep 13, 2008
Messages
165
1. This can be done a variety of ways. The most common way is to have 'dummy units'. That is having units with no model, no vision, no attack etc. and hiding them in the corner of the map or something. You would call these Dummy units something like "You have researched Swordsmen so you cannot research archers" or something of the likes. When you research Swordsmen you would remove the unit called "You have..." so that the archers.

2. Make four units.
- Swordsman (Normal)
- Swordsman (Strong)
- Swordsman (Weak)
- Swordsman (Dummy)
The swordsman dummy is the unit that you when you click to train a swordsman. It gives you the cost and training time. Then through triggers You would replace the last trained unit with one of the three units.

3. Don't double post, use the edit button instead.

4. That is done by using colour codes like |cffffcc00Your Text Here|r - That would give you yellow. The reason you can't edit them is because you have to allow custom gameplay interface.

If you want I will create a small test map with these things in it.
 
Level 11
Joined
May 31, 2008
Messages
698
Limit1
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Triggering unit)) Equal to (==) Barracks
Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Trained unit)) Equal to (==) Footman
Then - Actions
Player - Make Archer Unavailable for training/construction by (Owner of (Triggering unit))
Else - Actions

Get NewGen to easily color your text. You can get it at wc3c.com
 
Status
Not open for further replies.
Top