I have set up my defeat and victory condition; they both run fine, but the defeat trigger correctly shows the Defeat dialog, while the Victory one doesn't. The related actions look like this:
Defeat
Game - End game in Defeat for player defeatedPlayer* (Show dialogs, Show score screen)
That's a local variable.
Victory
Game - End game in Victory for player (Triggering player) (Show dialogs, Show score screen)
I really can't figure out what is the problem there, as they look pretty identical to me.
The event has a triggering player. I believe it is not an event problem, it must be something else, as I used a simple trigger to debug it, here it is:
Win cheat
..Events
....Game - Player Any Player types a chat message containing "win match", matching Exactly
..Actions
....Game - End game in Victory for player (Triggering player) (Show dialogs, Show score screen)
This trigger is simple enough to know that the problem doesn't lie somewhere in the complicated intricacies of win/lose conditions, but it must be something else I did.
Not any dialog at all. A black modal-style curtain fades in and no further interaction is allowed (clicking, accessing the menus). I can see the units in the background continuing to fight against the otherwise inactive units of the defeated player. Everything looks like Victory, except that there is no dialog.
Indeed I didn't try to test Victory conditions on Bnet, though I guess it should work correctly in Test, shouldn't it? I have been having a bit of trouble testing the map on Bnet with a friend: he doesn't have HoTS, but that shouldn't be a problem since I do, right? He cannot really select anything and that's really odd, as we tried to test different scenarios: both changing who's creating the game, and who's player one. That is really odd.
Thank you for your help! What kind of screenies should I attach? I really don't think that it is important to know the victory conditions: as I have said, I created this simple test trigger which triggers when somebody writes something in chat. So that shouldn't be an issue. In any case, victory conditions are pretty straightforward, whenever a player loses his Hero Unit, he loses. If all the players in your enemy team lost their Hero Unit, you win. Simple as that.
I don't recall having changed anything at all with the UI, but I might have messed up a bit while I was experimenting; any ways to see what and if I have changed something?
P.S. Is there a way in SC2 Mapster forum to receive email notifications? It's difficult to keep up, otherwise.
I had a similar problem a long time ago with the first map I made. The problem had something to do with modifying the UI while the game was running cinematic mode - it made it impossible to select things. Also, and I'm not sure if this was fixed or not, running the Show Game UI function twice caused some really strange effects, like making the credits screen show...
After removing the triggers one by one, copying the data in another Map to debug and so on… I had one of those Aha! moments, while viewing the standard Victory Panel: I had created a custom race, and the UI was not finding any Victory Panel for that race, I guess. Once I changed that, everything worked as usual.
Now the question is: how can I make a Victory Panel for my custom race? Even if it is as simple as copy+paste (referencing) another race's panel? Or should I rather quit the idea of the custom race and just override a default one?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have set up my defeat and victory condition; they both run fine, but the defeat trigger correctly shows the Defeat dialog, while the Victory one doesn't. The related actions look like this:
Defeat
Game - End game in Defeat for player defeatedPlayer* (Show dialogs, Show score screen)
local variable
.Victory
Game - End game in Victory for player (Triggering player) (Show dialogs, Show score screen)
I really can't figure out what is the problem there, as they look pretty identical to me.
Does the event have a triggering player? Maybe that's the cause...
Check out my kitbashes! Custom Campaign Initiative: Lots of great Custom Campaigns!! Check out and Support!!
The event has a triggering player. I believe it is not an event problem, it must be something else, as I used a simple trigger to debug it, here it is:
Win cheat
..Events
....Game - Player Any Player types a chat message containing "win match", matching Exactly
..Actions
....Game - End game in Victory for player (Triggering player) (Show dialogs, Show score screen)
This trigger is simple enough to know that the problem doesn't lie somewhere in the complicated intricacies of win/lose conditions, but it must be something else I did.
@sunyatasattva: Go
You said it's not showing the victory dialog - is it showing any dialog at all? Is it ending the game for that player?
@BasharTeg: Go
Not any dialog at all. A black modal-style curtain fades in and no further interaction is allowed (clicking, accessing the menus). I can see the units in the background continuing to fight against the otherwise inactive units of the defeated player. Everything looks like Victory, except that there is no dialog.
@sunyatasattva: Go
Do you turn cinematic mode on at all or change anything with the UI?
These questions are relevant.
@Trieva: Go
Indeed I didn't try to test Victory conditions on Bnet, though I guess it should work correctly in Test, shouldn't it? I have been having a bit of trouble testing the map on Bnet with a friend: he doesn't have HoTS, but that shouldn't be a problem since I do, right? He cannot really select anything and that's really odd, as we tried to test different scenarios: both changing who's creating the game, and who's player one. That is really odd.
Thank you for your help! What kind of screenies should I attach? I really don't think that it is important to know the victory conditions: as I have said, I created this simple test trigger which triggers when somebody writes something in chat. So that shouldn't be an issue. In any case, victory conditions are pretty straightforward, whenever a player loses his Hero Unit, he loses. If all the players in your enemy team lost their Hero Unit, you win. Simple as that.
@BasharTeg: Go
I don't recall having changed anything at all with the UI, but I might have messed up a bit while I was experimenting; any ways to see what and if I have changed something?
P.S. Is there a way in SC2 Mapster forum to receive email notifications? It's difficult to keep up, otherwise.
@sunyatasattva: Go
I had a similar problem a long time ago with the first map I made. The problem had something to do with modifying the UI while the game was running cinematic mode - it made it impossible to select things. Also, and I'm not sure if this was fixed or not, running the Show Game UI function twice caused some really strange effects, like making the credits screen show...
After removing the triggers one by one, copying the data in another Map to debug and so on… I had one of those Aha! moments, while viewing the standard Victory Panel: I had created a custom race, and the UI was not finding any Victory Panel for that race, I guess. Once I changed that, everything worked as usual.
Now the question is: how can I make a Victory Panel for my custom race? Even if it is as simple as copy+paste (referencing) another race's panel? Or should I rather quit the idea of the custom race and just override a default one?