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

[General] How to make a Townhall for a Custome Race

Status
Not open for further replies.
Level 19
Joined
Oct 7, 2014
Messages
2,209
Custom Townhall is not recognized

I'm making a custom race where one is a Naga race.
When I tested my map (I was excited) this message in the screen shot is shown :
"You will be revealed to your opponents unless you build a Tree of Life.

I've use a trigger to replace the Tree of Life with a Shrine of the Sea.
I've already made a map which also replaces the 4 original race with a custom race but this is the first I've encountered this problem? :goblin_jawdrop:

Any help would be appreciated guys. Thank you!
 

Attachments

  • Naga.jpg
    Naga.jpg
    290.8 KB · Views: 201
Last edited:
Level 29
Joined
Sep 26, 2009
Messages
2,596
I think melee AI doesn't take custom town halls into account.
Anyway, make sure the building is a town hall - in the "Stats - Unit Classification" field check "Town Hall".

If problems persist even after the building is checked as Town Hall, then I'm afraid you will need to use a custom victory/defeat conditions.
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
The problem is simple but you will need some knowledge of WC3 modding/mapping to actually know that :p (no offense)

Go to the Terrain Editor and open Advanced -> Gameplay Constants.
Way at the bottom there is something like Techtree - Town Halls. It contains an array of buildings (units) that represent a town hall. Add your custom town hall to that and it should be fixed.

I found it while I was searching to make custom heroes which also have to be registered as a hero in one of those fields.
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
Hmm...
I actually got no clue either man.

If you are not going to use the original Night Elf race with the Naga race, you can use the original Tree of Life and edit all values like models, unit trained, abilities etc and you have your town hall...

The last time that I made a melee map with custom races was long ago. But I do remember something of not being able to have a town hall with the race naga. If you change the race of the Shrine of the Sea to Night Elf, it could be working but I am not really sure.

Still my best guess is to just modify the original Tree of Life.
 
Level 21
Joined
Jul 27, 2008
Messages
14,361
The thing is the Melee Victory Conditions only accept the 4 main buildings, no exceptions. The " Advanced -> Gameplay Constants" effects many things except for that one issue you encountered. I am wiling to bet that first time you have either edited melee buildings or removed melee victory conditions.

As for solution I suggest you use custom race systems. Hive Version that uses Dialog Buttons, or Wc3c version that uses handicap% to select race. I prefer Hive system but both should work no problem and are invaluable when making proper altered melee maps. If you use them remember to credit creators.
 
Level 16
Joined
May 2, 2011
Messages
1,351
I had this issue once and I dont know how i solved it. I think for me it doesnt show in the beginning but, when first replaced town is destroyed, the message come back even if I built another naga thing.

so what I did, I think, is go object editor, in the naga castle, and chose
Techtree- equivalents: Tree of Life.

That should treat the naga castle just like it treats tree of life

i got this idea from when I was basing an upgrade on the troll berserker upgrade, and I saw this in the berserk ability
berserker and head hunter are equivalents

Anyway I cant remember if this Has actually solved the issue, but I think it did. But I havent played naga and lost my main twon hall in a while

so if you tried this solution, test 2 things

1 when you first replace it, in the beginning, does message apear.
2 if it did not appear, destroy your town, and message should appear. when it appears, build another one and see, does it fade or persist? if it faded, then all should be good I guess?
 
Status
Not open for further replies.
Top