• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to avoid starting location requirement??

Status
Not open for further replies.
Level 2
Joined
Apr 26, 2009
Messages
19
I can't save my map without all players having their starting locations in place. How can I avoid that? Or, even better, how can I change starting units and make them constant regardless of what race is chosen?
Another thing, how can I retain automatic placement of players over the map? For example, I want starting units (for all players) to be 4 footmen, but each time map is loaded, they should be created at a different gold mine (just like regular game). And there is no town hall. Just the units and randomize start locations.

Thank you!
 
I can't save my map without all players having their starting locations in place. How can I avoid that? Or, even better, how can I change starting units and make them constant regardless of what race is chosen?
Another thing, how can I retain automatic placement of players over the map? For example, I want starting units (for all players) to be 4 footmen, but each time map is loaded, they should be created at a different gold mine (just like regular game). And there is no town hall. Just the units and randomize start locations.

Thank you!

You can't save the map without placing the start locations, but all start locations really do is set where the player's camera starts. To get rid of all the other stuff (like the town hall creation), just go into your Trigger Editor and delete the "map initialization" trigger, and make your own trigger instead.
 
Now that I've done that and put my own Town Hall, immediately after the game starts I get a message that I'll be revealed because I don't have a "regular" Town Hall. How do I fix that?

I also want to know is it possible to have computer players unaffected by my modified initialization triggers? That would mean: I, regardless of race that I chose, get a starting Town Hall (which is my custom one) and few units (and thank you for that, I know how to do it now), BUT computer players still depend on the race they chose and their starting units are regular.

I want to do this for testing and balancing purposes so I always get the same units and opponents don't get affected (as when I click test map I get a computer enemy).
 
Is your town hall a custom unit? If so it must be 'counted' as a town hall like altars. (this can be done via Gameplay Constants.
 
~If you want it to stay as a mele map

We tried doing something like this for one of the (the first?) race building competition. The simplest way to do it is to get someone to make a jass/vjass/gui/mui trigger that instantly replaces the starting unit's at the beginning of the map, but you will encounter the problem of "your base will be revealed without a town hall thing". To solve the revealing issue well..... ok totally forgot how I fixed it before =/ sorry.
 
And do you know how to write that trigger? Maybe you could help me out, I'm only getting into the World Editor and I just started experimenting with triggers, but I still can't make a little more complex things. For now I have only mastered the object editor to every detail :D
 
And do you know how to write that trigger? Maybe you could help me out, I'm only getting into the World Editor and I just started experimenting with triggers, but I still can't make a little more complex things. For now I have only mastered the object editor to every detail :D

I doubt you mastered the object editor. But like I said- look in the gameplay constants. Also, there is a building type selection in the object editor. Check it as a town hall.
 
Status
Not open for further replies.
Back
Top