• 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.

[Solved] Trigger Wouldn't Turn on.

Status
Not open for further replies.
Level 10
Joined
Oct 2, 2014
Messages
215
In a map set in the Napoleonic Era that I am making, you choose Victory Point limit, Battle Size, and Gamemode; then if you win the gamemode you get a victory point (VP), but once you get the right amount of VP's it doesn't activate the trigger which allows you to win. I don't understand it. I posted the map to make sense and so you can see the triggers.
 

Attachments

  • Battle of Rois.w3x
    3 MB · Views: 41
Last edited:
Level 13
Joined
Mar 24, 2013
Messages
1,105
Okay, well upon very slight inspection, you really need to change how you have this set up. You're leaking groups and points every .01 seconds and even if you were to fix those, creating that many groups that often is not needed and is going to cause significant fps/lag issues.
 
Level 10
Joined
Oct 2, 2014
Messages
215
Okay, well upon very slight inspection, you really need to change how you have this set up. You're leaking groups and points every .01 seconds and even if you were to fix those, creating that many groups that often is not needed and is going to cause significant fps/lag issues.
How should I do the in-game victory check and the real victory check then?
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
Just so I am clear, explain how victory ought to be achieved.

I only looked for a second and am on mobile now, but I recall its when a team runs out of units?

But just briefly describe so there is no confusion.
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
So probably the best way to do it is going to be add all the units in a players army to a unit group.

Then when a unit dies, check which group it was in, remove it from that group, then loop through the whole group counting each unit, then check to see if the number of units in the group is 0. If so, that player is defeated and whomever should win gets the VP
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
Turning things on and off is not a problem but probably you were accidently turning something off when it needed to be on etc.

Again this is all speculation, but after seeing the current way the code was organized it does not seem unfeasible that it could have some mistakes.
 
Last edited:
Status
Not open for further replies.
Top