Victory and Allying Trigger help

W

WithoutD

Guest
Alright, I have a map, that you have a building call a heart, if it dies you lose. I want to add a victory trigger that if all of the enemy hearts die, you win.

Also, I want to add a allying trigger. For example if you type -ally red, red will get a box that pops up and red clicks yes or no. If he clicks no then they wont ally, but if he clicks yes then they ally. Also, if you type -unally red, you unally red.

If you can help, that will be great!
 
WithoutD said:
Alright, I have a map, that you have a building call a heart, if it dies you lose. I want to add a victory trigger that if all of the enemy hearts die, you win.
Try something along these lines:
Events
A unit dies
Conditions
Number of Hearts owned by enemies of player 1 is 0
Actions
End game in victory for all allies of player 1
End game in defeat for all enemies of player 1​
And something similar for the other team.

WithoutD said:
Also, I want to add a allying trigger. For example if you type -ally red, red will get a box that pops up and red clicks yes or no. If he clicks no then they wont ally, but if he clicks yes then they ally. Also, if you type -unally red, you unally red.
I don't want to write out the whole thing, but... you'll need an array of dialog boxes and two for dialog buttons (one for yes and one for no). When someone types "-ally red" or whatever, set the title and show it, etc. If you haven't already, try checking out a dialog tutorial.
 
heres what u need. . .

trigger 1- defeat

e: a unit dies
c: dying unit equal to "heart:
a: defeat player, owner of dying unit, with the message (wahtever u want)

trigger 2- victory*

e: a unit dies
c: dying unit equal to "heart:
a: defeat player, owner of killing unit, with the message (wahtever u want)

*. . this works but i dont know if u want to make it when all enemy hearts are destroyed cause that is done with conditions. .

trigger 3- aly

E: a unit enters text
C: text enter equal to -aly red
A: Create a text box with (this is where u set yes and no or whatever) for player 1 red

must be done for all players unless u wanna use jass or variables

E: a player clicks yes on text box
C:
A: make clicking player aly with player sending text box
destrey text box

E: a player clicks no
C:
A: send message to player sending text box "player 1 red has denied ur allience"
destroy text box

the last bit is a little rough. . im not 100% sure what the actions or events actualy are but its around there. . .
the first trigger a unit entesrs text -aly red. . . that should be correct

the ones following are what im not sure about but it could give u an idea of what ur looking for

the first 2 are correct though

hope this helps :)
 
Heptameron said:
Try something along these lines:
Events
A unit dies
Conditions
Number of Hearts owned by enemies of player 1 is 0
Actions
End game in victory for all allies of player 1
End game in defeat for all enemies of player 1​
And something similar for the other team.


I don't want to write out the whole thing, but... you'll need an array of dialog boxes and two for dialog buttons (one for yes and one for no). When someone types "-ally red" or whatever, set the title and show it, etc. If you haven't already, try checking out a dialog tutorial.

I'm trying to find the condition for the victory trigger but I dont seem to find it, can you tell me where it is located? For example is it a integer comparison and so on...
 
WithoutD said:
I'm trying to find the condition for the victory trigger but I dont seem to find it, can you tell me where it is located? For example is it a integer comparison and so on...
Integer Comparision > Unit - Number Of Units In Unit Group > Units In Region Matching Condition > etc.
 
Heptameron said:
Integer Comparision > Unit - Number Of Units In Unit Group > Units In Region Matching Condition > etc.

Heh still a little lost... say the rest... please..
 
WithoutD said:
Heh still a little lost... say the rest... please..
After that, And, and the one side is Boolean Comparison > Unit - Unit Owned By Enemy Of Player (using Matching Unit and Player 1 (Red), and the other side is Unit-Type Comparison (Unit-type of (Matching unit) Equal to Heart).
 
Heptameron said:
After that, And, and the one side is Boolean Comparison > Unit - Unit Owned By Enemy Of Player (using Matching Unit and Player 1 (Red), and the other side is Unit-Type Comparison (Unit-type of (Matching unit) Equal to Heart).

... I'm having TONS of trouble with this, can you send a map that has the trigger so I can just copy and past it to my map? I'm guessing this is an advanced trigger...
 
Try this instead, note that I do not have WE open so it might not be perfect:

Code:
Events
   Unit - A unit dies
Conditions
   Heart 1000 is Dead Equal to True
Actions
   Defeat Player 1 with the message: "Defeat!"
   Victory for Player 2: Show Score Screens
 
A better condition would be "dying unit equal to Heart 1000."
 
For some uinknown reason, I have always found that Condition to hold multiple problems, and not executing at certain times. I would use my Condition for a more reliable outcome.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    It's an unnecessarily long and just not that good of a cord. Falls out of the little clip I put it in.
  • Varine Varine:
    And yeah I was working. It was a suprisingly good weekend, I didn't run out of anything until today and had most of resolved. I think the only thing I didn't have some solution for was halibut, but in my defense I got 45 pounds or something last Thursday. It took me like an hour and a half at the end of the night.
  • Varine Varine:
    Today I had to scramble, I didn't work most of dinner service and no one told me shit. They had a rough few hours lol
  • Varine Varine:
    I have two salmon, Sockeye and Atlantic. Atlantic is used for the kids salmon and the salmon and beet salad, and can also be added onto any dish or just as a side. Atlantic salmon will almost exclusively ever be FARMED, as it is endangered in the wild, and we ALWAYS cut them to 4 ounces.
  • Varine Varine:
    SOCKEYE salmon, very different and this IS wild caught. We have an ENTREE version, and an add on version. The entree is 7 ounces, the add on is 4. Why? Because that is how someone that wasn't me set up the computer.
  • Varine Varine:
    I had to have this conversation like ten fucking times tonight
  • Varine Varine:
    The issue being, I came into work and had none of this whatsoever
  • Varine Varine:
    No one told me shit
  • Varine Varine:
    So, taking into consideration that what I typed out up there is kind of some fucking nonsense that under normal circumstances no one really needs to fucking be able to explain in any rational way
  • Varine Varine:
    Let alone trying to figure it out from a wildly stressed out me that is also on a phone call trying to get something to show up from Seattle tomorrow while trying to explain this salmon situation, that also is barely solved in maybe a few hours and and but I am bulking it with a few steelhead filets I have and that is a WHOLE fucking different thing to the 19 year old server that got put on day shift C crew that doesn't know who I am.
  • Varine Varine:
    I did however really want days. I like getting off at 4 half the time, and that makes it worth it!
  • Varine Varine:
    Also I hate my job right now but I think that was the hard part. Now it's just work
  • Varine Varine:
    @jonas I'm sorry? I don't know what you're referring to.
  • Varine Varine:
    Once we hit winter I feel like I get to back to having a pretty cool job. Like I bitch about it all the time, but it's work. I'm still gonna bitch
  • Varine Varine:
    All in all though I think this summer is going really well. Some complicated things, but at the end of the day it isn't THAT big of a deal. Not all of our servers have quite realized they are technically sales
  • Varine Varine:
    Like yeah it is a substitute, but FOMO. Chef isn't getting this again this year, he has to figure it out, so it's slightly off on the menu, but that is more or less the LOWEST quality and price. Right now, steelhead is a real stealhear, right?
  • Varine Varine:
    Like fuck off even I can do it
  • Varine Varine:
    I am going to get one of my servers to do that in her server voice and you'll see my point
  • Varine Varine:
    Maybe the bartender. Idk, it's one of my favorite things to hear them go from calm to customer service voice. They will translate it to like "The chef is trying to change that a bit right now so he does have a Alaskan river steelhead. Yeah like the one you might fish probably!" And then the girls can bat their eyes and do pretty girl server shit
  • Varine Varine:
    At least that's how imagine some of them. Did you know mayonnaise is dairy free? A suprisingly amount of people don't\
  • The Helper The Helper:
    mayo is eggs right?
  • The Helper The Helper:
    Seems I never watched the Witcher - looks like i have a lot of content
  • The Helper The Helper:
    Season 1 Episode 8 the marathon continues...
  • jonas jonas:
    mayo is eggs & oil
    +1
  • The Helper The Helper:
    I got halfway season 2 on The Witcher and it lost me. I am going to have to pick this one up again later.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials
      Top