• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Best method for unit spawning....?

Status
Not open for further replies.
Level 4
Joined
Mar 15, 2008
Messages
80
Hi, in the map I'm making I need player controled units that spawn in waves.
I also need the spawns to level up/ be upgraded via the use of an upgrade/research building.

I've had a number of ideas of ways I could manage this with triggering and variables but they all seem rather complicated. I have 9 seperate players to do this for and I want to avoid using masses of repeating triggers for each player.

I would greatly apreciate any advice or a simpler method of achieving what I want, thanks.

If you need any more information, just ask me:thumbs_up:
 
What Berbanog said, you can just avoid using the same trigger c&pd for each player by just making the variable into arrays, for example
Set Variable Something[PlayerNumber(TriggeringPlayer)] = whatever.
 
In a case where you have spawn locations, you'll want an array of locations so that you can reference any of the player's spawn-points through a single variable (array it may be).
 
Okay, thank you. I get what you're saying (and it has really helped) but it is he element of customisation to the spawn types that causes my problem.

I think that I have worked out a method that could work (which unforunately requires me to rebuild areas of my map) But if it works it's something that I've never seen used before on the map in quite the way I plan to use it.

I'll probably be back asking for more help soon when his goes wrong bu for now I'm taking your advice and aplying it to this idea.
Cheers:thumbs_up:
 
Status
Not open for further replies.
Back
Top