Hi, I'm wondering whether creating a dialog window for only Zerg players can be achieved or not.
Also, and this is the more complicated thing: can I create a dialog window, which always shows the current state of Melee, Ranged and Armor status?
It needs to show the status of the upgrade, and the picture of it. A countdown timer is not an option, because the player will be able to quicken the upgrade. Please help!
EDIT: I got the first part, it was fairly easy after making a deal with the devil and using 'Any unit is Selected' for Event. (+if conditions). This will work in my opinion. But for my second question, i still need help!
Hi, I'm wondering whether creating a dialog window for only Zerg players can be achieved or not.
Creating only for Zerg players is impossible since that would violate the game determinism. However you can show a dialog to only the Zerg players no problem at all. Simply add all Zerg players to a group and then show the dialog only to them. To prevent abuse remember to validate if the triggering player is a Zerg as third party programs could "press" non-visible buttons (the game does not check if the player could actually trigger the event).
Quote:
Also, and this is the more complicated thing: can I create a dialog window, which always shows the current state of Melee, Ranged and Armor status?
Status of what? Of the currently selected unit? I thought the standard UI did this already. If you want to move it then I recommend moving the element inside the standard UI rather tan trying to create a trigger one as the standard UI will do it far better than you can simulate it with triggers.
Quote:
It needs to show the status of the upgrade, and the picture of it. A countdown timer is not an option, because the player will be able to quicken the upgrade. Please help!
What does this have to do with the status? Are you talking about upgrades? The same answer applies, try and use the standard UI elements that show this for the current selection rather than triggering your own. If you want to trigger your own (so it does not depend on selection) then try polling the status of the upgrade every 0.0625 seconds and showing it as some form of slider.
What does this have to do with the status? Are you talking about upgrades? The same answer applies, try and use the standard UI elements that show this for the current selection rather than triggering your own. If you want to trigger your own (so it does not depend on selection) then try polling the status of the upgrade every 0.0625 seconds and showing it as some form of slider.
How can i poll the status of the upgrade?
EDIT: I basically created a Label that updates every sec, and triggers to reduce the interger of which the label uses its data of.
That's no good. The thing is, the player has auto-upgrades, but it takes 1000 seconds to complete level 1, and after that, level 2 starts, etc. straight to 5. 1000 sec is a fucking long time, but there's a catch. If a player kills an enemy unit type, he gets a bonus depending on what unit he killed (-seconds from upgrades).
I already solved the problem, there will be no actual upgrades, just Labels, and when the Integer hits 0, player will get the upgrade.
Hi, I'm wondering whether creating a dialog window for only Zerg players can be achieved or not. Also, and this is the more complicated thing: can I create a dialog window, which always shows the current state of Melee, Ranged and Armor status?
It needs to show the status of the upgrade, and the picture of it. A countdown timer is not an option, because the player will be able to quicken the upgrade. Please help!
EDIT: I got the first part, it was fairly easy after making a deal with the devil and using 'Any unit is Selected' for Event. (+if conditions). This will work in my opinion. But for my second question, i still need help!
Creating only for Zerg players is impossible since that would violate the game determinism. However you can show a dialog to only the Zerg players no problem at all. Simply add all Zerg players to a group and then show the dialog only to them. To prevent abuse remember to validate if the triggering player is a Zerg as third party programs could "press" non-visible buttons (the game does not check if the player could actually trigger the event).
Status of what? Of the currently selected unit? I thought the standard UI did this already. If you want to move it then I recommend moving the element inside the standard UI rather tan trying to create a trigger one as the standard UI will do it far better than you can simulate it with triggers.
What does this have to do with the status? Are you talking about upgrades? The same answer applies, try and use the standard UI elements that show this for the current selection rather than triggering your own. If you want to trigger your own (so it does not depend on selection) then try polling the status of the upgrade every 0.0625 seconds and showing it as some form of slider.
@ImperialGood: Go
Im such a noob. by status, i meant upgrade status at a unit (Hive).
How can i poll the status of the upgrade?
EDIT: I basically created a Label that updates every sec, and triggers to reduce the interger of which the label uses its data of.
Why not just do percentage completion instead of timer?
@MaskedImposter: Go
That's no good. The thing is, the player has auto-upgrades, but it takes 1000 seconds to complete level 1, and after that, level 2 starts, etc. straight to 5. 1000 sec is a fucking long time, but there's a catch. If a player kills an enemy unit type, he gets a bonus depending on what unit he killed (-seconds from upgrades).
I already solved the problem, there will be no actual upgrades, just Labels, and when the Integer hits 0, player will get the upgrade.