• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Add units to a mercenary camp and set their price?

Status
Not open for further replies.
Level 4
Joined
Aug 26, 2015
Messages
71
Hi. I need a trigger to that, it's a neutral mercenary camp if you need the information. I want to set their price too.
 

Ardenian

A

Ardenian

Another approach could be to create dummy items ( to have a price shown) and check which item is sold -> remove item -> create unit

You would most likely use variables with an array for this.

Example:
MercenaryItem[1] = Golem - this is an item variable with an array
MercenaryUnit[1] = Golem - this is a unit-type variable with an array

Now check if a shop sells the MercenaryItem[1], remove it and create one unit of type MercenaryUnit[1].
 
Status
Not open for further replies.
Top