• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

What happened to my victory condition?

Status
Not open for further replies.
Level 4
Joined
Apr 1, 2020
Messages
73
I seem to have lost the trigger that controls victory conditions (though defeat still works for some reason?)

The map I based my project on has these triggers:

Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Trigger - Add SetRaceVariables <gen> to the trigger queue (Checking conditions)




And here is what I have now:

Melee Game - Use melee time of day (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Trigger - Add SetRaceVariables <gen> to the trigger queue (Checking conditions)



I've looked everywhere for the victory defeat conditions and I can't find the trigger in either map but victory/defeat works just fine in the original map.
 
You mean this?
  • Melee Game - Enforce victory/defeat conditions (for all players)

So that trigger won't work because it triggers defeat before the player can choose their race in this pop-up system.

Here is the map I am basing it off of.
Blizz-Like Melee Settings For Extra Races 2.5

And attached is my map. (Please don't share, we will be moving those settings to an original map whenever we get these triggers worked out)

I have no idea where the victory conditions ARE, let alone why they don't work anymore and I'm pretty sure that is the reason we get massive lag everytime a building is destroyed ( since the victory/defeat condition is based on the placement of buildings)

I'm also concerned about data leak. the OP map is dinged for data leak. I get the concept but I have no idea how to identify it or fix it. I'm not sure if that has anything to do with the victory conditions or lag but it probably does? Please help!
 

Attachments

From the look of it the trigger comments note it's in SetRaceVariables, at least the IDs of buildings that would keep it happening. As for the actual function, uhhh...
Seems like it's in the custom map code (Select the map icon/name in trigger editor)

While trying it out I didn't get any lag smashing buildings though, so not sure what's happening there for you, but anyways, that system seems to have been made for the patches before 24 players were a thing so that alone might make it a bit funky? My knowledge of this stuff in general isn't much right now and looking at this hurts my brain so can't really help there, but hopefully this will at least point in a general direction.
 
From the look of it the trigger comments note it's in SetRaceVariables, at least the IDs of buildings that would keep it happening. As for the actual function, uhhh...
Seems like it's in the custom map code (Select the map icon/name in trigger editor)

While trying it out I didn't get any lag smashing buildings though, so not sure what's happening there for you, but anyways, that system seems to have been made for the patches before 24 players were a thing so that alone might make it a bit funky? My knowledge of this stuff in general isn't much right now and looking at this hurts my brain so can't really help there, but hopefully this will at least point in a general direction.
I should Have clarified. The lag happens in multiplayer. If you play without another human player then it doesn't lag even with multiple AI players.
 
The victory/defeat conditions had been slightly changed (for worse) and moved to the map header. It's supposed to be called when the race dialog finishes. Otherwise, everyone loses the match.
JASS:
function Trig_AlteredMeleeCreateStartingUnits_Actions takes nothing returns nothing
    call DisableTrigger( GetTriggeringTrigger() )
    call AlteredMeleeStartingUnits()
    call AlteredMeleeInitVictoryDefeat() // <===
    call AlteredMeleeStartingAI()
endfunction

I've adjusted a few things here and there, and it should be working now.
 

Attachments

Status
Not open for further replies.
Back
Top