Town Halls

Ryman1024

New Member
Reaction score
0
Hey, Ive got a problem where when I replace a Human town hall with a naga town hall via a trigger, "It says the build town hall in 2 mins thing" what do I need todo to avoid that. Like what do I need to change in the object editor to get stop that. Or in the trigger editor to get rid of it all together?
 
as far as i know its the action: melee-Game - Enforce victory/defeat conditions (for all players) which is responsible for that.
 
Yeah, but I woulddnt be able to delete that, or no one would win or lose. And I know, theres some way I can make one building be recognized as another building.
 
either you can create an own win/lose condition with triggers so you can delete that action or use an invisible dummy unit with the classification townhall.
 
How would I go about that? When I look for the action, it doesnt let me edit anything? Im pretty newby at this.
 
whats the condition to lose the game? if you use the standart melee initialization i guess something like "a player has no units left = defeated"
then you could go with a very easy trigger, it should look somewhat like this:
Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Triggering unit)) controller) Equal to User
    Actions
        Set TempGroup = (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is alive) Equal to True))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in TempGroup) Equal to 0
            Then - Actions
                Game - Defeat (Owner of (Triggering unit)) with the message: Defeat!
            Else - Actions
        Custom script: call DestroyGroup (udg_TempGroup)
TempGroup is a unitgroup variable, it is used to avoid memory leaks.
this trigger will make all players lose if they got not a single unit left in game.
 
I could do that, but what you said before "classification of a town hall" instead of making a dummy unit, I could just put it on the town hall I wanted, without the triggering, which is too complicated for me at the moment.

EDIT: I dont know what the classification for a town hall is.
 
"Classification for a town hall" = find a field in the object editor where it says "Unit Classification" and open it. A list of possible "unit types" (e.g. Tauren, Ancient, Undead, Mechanical, Peon, and somewhere in there Town Hall) will appear. Find the one where it says 'Town Hall' and check it.

There, the unit now counts as a town hall in the game (and consequentially, stuff like Town Portals will recognize it as a town hall, even if it is just a farm of some sort).
 
What im using is a Temple of the Tides in place of the Human town hall, the unit classification is already Mechanical, and Town Hall. And the 2 minute timer still pops up. Ive also tried changing the race from Naga to Human, and it still does it.
 
townhalls.png

Adding the Temple of the Tides to those fields might work.
 
It didnt work, I think the problem is that its not a human town hall, because when I spawn a human town hall instead it works fine.

EDIT: Tried with Tree of Life-Necropolis-Great Hall and it works fine.
 
I tried it didnt, but I just made custom victory conditions. Now I have another problem, the heroes ive made when I train them, I can make more like a regular unit and i dont know how to stop that. :banghead:
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top