Question

  • Thread starter Thread starter Gollum45
  • Start date Start date
G

Gollum45

Guest
How do i make a player loose when all his peasents and townhalls have been destroyed?
 
Event -----pesant die
-----tawn hall die
conditions --- total number of town hall units controled by player 1
egual to 0
--- total number of pesant units controled by player 1
egual to 0
action ----player 1 lose game
 
You can't really test for "A Worker dies",
which adds to the conditions :(

Unfortunately too, you can't test for:
"Do I have enough Gold and Lumber to start a new Town Hall"

Ah well, :)


Code:
Defeat
    Events
        Unit - A unit Dies
    Conditions
        Or - Any (Conditions) are true
            Conditions
                ((Triggering unit) is A town-hall-type unit) Equal to True
                ((Triggering unit) is A peon-type unit) Equal to True
        (Number of units in (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is A town-hall-type unit) Equal to True))) Equal to 0
        (Number of units in (Units owned by (Owner of (Triggering unit)) matching (((Matching unit) is A peon-type unit) Equal to True))) Equal to 0
    Actions
        Game - Defeat (Owner of (Triggering unit)) with the message: Defeat!

Totally untested...


HTH
AceHart
 
Ok i tried the trigger and it didnt work, when i killed one peasent or one town hall it came up with defeat. i want to set it so that when you have NO town halls or peasants left you are defeated.
 
Hm..., you're sure you set it up exactly as shown?

Just to clarify, there are 3 conditions:
- "or", with 2 sub-conditions
- "number town halls"
- "number workers"


If all else fails, post your trigger here.


HTH
AceHart
 
Melee Setting...

What you are looking for is the Melee "Enforce Win/Loose conditions". When you control no buildings... u dead.
 
Ok, i made sure that every part of the trigger you posted was identical to mine. When i tested my map I killed all my peasants and townhalls but nothing happened.
 
Are you certain? The trigger code looks solid.

Please confirm that you copied the trigger code correctly.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.
  • U Uberplayer:
    Thanks for everything!
  • XXXconanXXX XXXconanXXX:
    And we JUST got a new warcraft 3 campaign after 20 years! Bummer lol. Thanks for building and maintaining such an awesome community over the years TheHelper! Forums like these are definitely a relic of their time, and in its heyday it really was the place to be in its niche. Hopefully the discord community stays active!
  • WildTurkey WildTurkey:
    All the best helper
  • WildTurkey WildTurkey:
    Thanks for what you have done for me and my family
  • WildTurkey WildTurkey:
    I wish you all the best and am saddened to say goodbye
  • The Helper The Helper:
    That is fantastic WildTurkey I am so happy to hear that! Bless you and your family!
  • The Helper The Helper:
    and i dont think I am going to close the site it is just likely to change drastically but I am working on something for the interim still fleshing it out. Most of the forums are going to be gone though and the NUON site and Warcraft sites will probably to to different hosts. I might keep the news forum though :)
    +1
  • The Helper The Helper:
    So I paired down the forums to what is going to be in the interim
  • The Helper The Helper:
    I might also just go for one news forum and make it Headline News only all that sub forum stuff was busy work on my part i think :)
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    I know right
    +1
  • Varine Varine:
    It's been great guys, I appreciate you having kept it up for so long! I feel like this has been a big part of my growing up in life, and I do very much appreciate everything that this forum has been able to give to me. So thank you.
    +2
  • Varine Varine:
    If there's bits still around I am willing to bet I will be, but I honestly wouldn't be too upset if some of my teenager posts were to no longer be around. I was a little fucking problem back then
    +1
  • Varine Varine:
    I'm going on a backpacking trip pretty soon. I've been trying to do it for a few years now and it just couldn't happen. I'll be by myself, and I think it'll be really good for me. My pack is already too heavy so I can't bring alcohol, and that might be a benefit to me. Like had that probation and couldn't drink, but it's a bit different when you can't do something voluntarily versus threat of literal imprisonment
    +1
  • Varine Varine:
    The trail is 40 miles altogether, but I'm planning on cutting cross country a bit because I want to camp on top of this mountain. I'm bringing a little telescope, if there's still a place for it I'll post some pictures when I get back!
    +2
  • jonas jonas:
    honestly there's nothing on that trip that would become better by drinking
  • jonas jonas:
    looking forward to those pictures
  • The Helper The Helper:
    Happy Thursday people! I think I have come up with a new direction for the site. One that will never fizzle out because a game is not popular anymore. I think I am going to try to make TheHelper.net a place that helps people with real stuff as much as it did with game technical support back in the day. Stay tuned...
    +3

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top