• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

HIVE

BloodSoul
BloodSoul
So, this is how it is for now: If a player starts the game without anything (no unit), they lose. If all units of a player die, the player is defeated. If a player leaves the game and the number of players in a team is equal to 0, all remaining units will become neutral towards the remaining players. Though I need to test the latter one yet.
BloodSoul
BloodSoul
Hello, Mote-E. Sorry for bothering you again. I'm here to tell you that I found a small problem in the triggers, but I fixed it already. I recommend that you re-download the map from that thread and replace those triggers.
Mote -E
Mote -E
Thank you bro, i'll try later at home and text you back, did you try my map?
BloodSoul
BloodSoul
Not yet. I'll try it later :)
Mote -E
Mote -E
Hey bro, what's up, I tried the trigger but there's something wrong after the "time elapse", seems like it took me victorious after the "time elapse", I mean.. it doesn't count the units left and declares the player winner after the time elapse, there's something wrong, isn't a easier way to declare a player victory after all the death of all enemy units?
Mote -E
Mote -E
PS: When you win or lose it doesn't show the scorebar

Anyway thank you so much for this trigger, i'll continue with this one trying to fix it the much as I can.
BloodSoul
BloodSoul
Have you tested it in your own map or the one I sent? If it's the latter, you need to fill up the player slots. I left it as empty when I attached the map. Scenario -> Player Properties... -> add computers.
BloodSoul
BloodSoul
It's, for now, behaving like the original win/lose conditions, which will always give you victory if there's no enemy forces/players.
Mote -E
Mote -E
Does it count the computers ? I'll test it in both maps and happens what I told you, let me check those slots
Mote -E
Mote -E
Nope bro, it is not working, does it works for you?
BloodSoul
BloodSoul
Yes, it counts computers, and works as intended for me.

A player only wins if their team is the only one left in the game, or if they start the game without any enemy player/force.
BloodSoul
BloodSoul
Oh, MAN. I am a retard. I totally forgot to tell you about a thing: Go to the trigger editor, open the variable editor (Ctrl + B), then look for a variable named "WinLose_AvailableTeams". Set its initial value to -1 and its array size to 12.
BloodSoul
BloodSoul
I'm sure that's the cause of the problem you've been experiencing, because when you copy and paste trigger data from a map to another, the variable editor doesn't copy all variables correctly - specially the initial value and array size fields. I should have written this in that thread. Sorry for causing all this problem for you.
BloodSoul
BloodSoul
Another thing that I forgot to answer you:
You can re-add the score screen for players when they see "victory!" as soon as the game starts by selecting the "WL Initialization" trigger, now scroll down until the end of it and look for this action:

Game - Victory (Picked player) (Show dialogs, Skip scores)

Set "Skip scores" to "Show scores".
Mote -E
Mote -E
Oohhh, okok, i'll check it bro, wow thanks so much again for the help, i'll try to fix it and text you back here!
Mote -E
Mote -E
Hey bro 1 question, did you said " -1 to 12?" or "1 to 12? if I put -1 never win and never lose.. if I put 1 win after the "time elapse"
BloodSoul
BloodSoul
You have to set the initial value to -1 and the array size to 12. Remember that you need players or computers playing.

If it still doesn't work for you, try to send me the map, and I can fix that for you.
Mote -E
Mote -E
I think i'll do that, give an email
BloodSoul
BloodSoul
Let me know when you send it.
Top