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

Purchase Units

Status
Not open for further replies.
Level 6
Joined
May 11, 2013
Messages
205
How to purchase units from Neutral Buildings and add them to the creep spawn system? Player who purchased units must not own them. The purchased units must increase creep spawn system with different units. All i need to know is how to add them in my creep spawn system.
 
Level 6
Joined
May 11, 2013
Messages
205
Here is the example. I'm using 3 line barracks that spawn units.
  • [trigger]Central Spawn Alliance
    • Events
      • Time - Every 40.00 seconds of game time
    • Conditions
    • Actions
      • Trigger - Turn on (This trigger)
      • Unit - Create Footman Footman for Player 6 (Orange) at (Center of Central Alliance Barrack <gen>) facing Default building facing degrees
      • Unit - Create Riffleman Rifleman for Player 6 (Orange) at (Center of Central Alliance Barrack <gen>) facing Default building facing degrees
      • Unit - Create Knight Knight for Player 6 (Orange) at (Center of Central Alliance Barrack <gen>) facing Default building facing degrees
      • Unit Group - Add (Triggering unit) to (Units owned by Player 6 (Orange))
 
Level 7
Joined
Jun 15, 2010
Messages
218
you need to create an whole system for that. I can help you with it if you want, but then i need information of how you want the system to exacly work
 
Level 5
Joined
May 12, 2014
Messages
133
Hey, I'm not sure if I should try helping, mostly because I'm pretty terrible. But this is the way I would have done it. If this doesn't work for you, I could try adjusting it some more. I made this pretty quickly, so there might be a lot of problems. :goblin_good_job:
 

Attachments

  • UnitSpawn.w3x
    21.5 KB · Views: 56
Status
Not open for further replies.
Top