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

Upgrades

Status
Not open for further replies.
Level 16
Joined
Mar 25, 2016
Messages
1,327
- certain heroes are in the game
Upgrades (or Units/Items) can have techtree requirements. You can select units(buildings and heroes are also units) or upgrades, the player must have in order to be able to research that upgrade.

As The_Silent said, you can use a dummy unit to have the other conditions. As an example you create a dummy unit with the name "Level 5 Hero" and use it as techtree requirement for your upgrade. When you get a level 5 hero, you would add that dummy unit to the player. If you no longer have a level 5 hero, you would remove that dummy unit. Alternatively you can change owner of the dummy, if you don't want to create and remove so many units.
Once a player has researched the upgrade and you no longer need these requirements you can remove the units.
 
Level 8
Joined
Jan 19, 2015
Messages
57
Upgrades (or Units/Items) can have techtree requirements. You can select units(buildings and heroes are also units) or upgrades, the player must have in order to be able to research that upgrade.

As The_Silent said, you can use a dummy unit to have the other conditions. As an example you create a dummy unit with the name "Level 5 Hero" and use it as techtree requirement for your upgrade. When you get a level 5 hero, you would add that dummy unit to the player. If you no longer have a level 5 hero, you would remove that dummy unit. Alternatively you can change owner of the dummy, if you don't want to create and remove so many units.
Once a player has researched the upgrade and you no longer need these requirements you can remove the units.
Could you give me an example of the trigger? What it'd look like?
 
It depends on what conditions you require, as each uses different triggers.

For example, in my map, I have a system where multiple buildings are converted into 'Set', where you can increase tier once all requirement of this 'Set' is in map. So, my triggers relies on building existence, thus construction events.

As for your cases :
- X amount of time passage --> Time elapsed event
- Building is destroyed --> Unit dies event
- x amount of allies --> ???
- heroes level --> Hero level up event

For certain heroes, you can use the unit type and add it to the requirement list right of the bat.
 
Status
Not open for further replies.
Top