• 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.

how can i make research unlock a unit

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Using requirements linked to the unit creation ability (like morph for drone). SC2 normally has requirements such as "needs X unit" for most units. The principle of requirements is the same for all requirements so you could just plug in a "needs X upgrade" requirement in its place. There are lots of examples of these requirements as almost everything that needs research to use uses one.

For example "Use Siege Mode" is a good example of such requirement.
I gave this requirement to the "Marine" unit in the "Barracks - Train" ability.
In game, the barracks now requires you to research Siege Mode inorder to train marines.

The example is not very practicle (as who wants that upgrade linked to marines?) but you get the idea how it is done. There are enough examples of requirements that depend on Upgrades that hopefully you will quickly solve any problems you encounter making your own upgrade dependant requirement for training a unit.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Well you never told me what to fix so I just made an example.

Inorder for the Nexus to build a probe, you need to first research Probe Technology.
Probe Technology is researched from the forge.

How I made this...
1. Created an upgrade (Probe Technology)
2. Created a requirement for Probe Technology (basically copied an existing requirement for upgrade and changed it to my upgrade).
3. Added the requirement to the Nexus train ability for training a Probe.
4. Added the Upgrade to the Forge Upgrades Ability.
5. Added the Upgrade to the Forge command card.
 

Attachments

  • faction war.SC2Map
    203.4 KB · Views: 36

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Here we go then...

You need to research the Marine Quarters inorder to build marines. I also demonstrate button stacking so that the marine button only shows if you are / have researched the nescescary upgrade.

The broken model is your problem, I purly used the Hyperion you provided.
 

Attachments

  • faction war2.SC2Map
    203.7 KB · Views: 44
Status
Not open for further replies.
Top