then make sure the image dialog is created first so the button dialog is ontop, then it can be pressed
also use Fade Dialog Item Transparency (fade time of 0) to set the button transparency
I cant see why your image is missplaced but thats only cause your screenshot isnt up to date, but it most definetly is a tiny mistake somewhere, look it all over carefully
Dont use Set Dialog Item Image - it always stretched and cant be used, bugged, you have to create 2 dialog items ontop of eachother - 1 button and 1 image of the same size but the OP is already doing that
You are setting the Archon Icon as Last Created Dialog Item without ever having made a dialog item or is it not made in this trigger?
Then you made the Archon Image and set it to High Templar variable
Without reading anything - I think it might be your while loops
Muahaha!
Ok seriously now:
if-then-else
if-then-else
if-then-else
or
if-then-else
--if-then-else
if-then-else (formatting messed up but its copy paste from your post)
Those 2 ways are not the same, the first way does the 'then' part, then skips else, then goes into the next 'then' (assuming it passes conditions)
The second way ONLY goes into the second 'then' if it does NOT go in the first 'then'
So basically, it only goes into the second statement if it fails the conditions of the first statement
I'll do that in combination with secret hero - any hero in the circle but not allowed to select will only be available from a random (or not at all - will make option)
The light spot above the picked unit (in exclusive hero mode) gets turned off - may not be super obvious, I can put in an optional red light. I didnt want to remove the model because I want players to still be able to see what they are missing
I actually wanted to make a big red cross infront of the unit towards the camera, but sadly the X model that is ingame needs to be turned with the data editor, and for this trigger I'm not allowed to use the data editor
Option 1 - Create a global variable for each nation
Make it a boolean array, size = max amount of players
When a player selects that nation, the (index - 1) of the array of that nation gets set to true (you use index - 1 because the array starts at 0, but player numbers start at 1)
Then to check you who belongs to that nation, you just do Pick Each Integer from 0 to max amount of players with an if statement if true
Option 2 - Make an integer array with size max amount of players, index 0 of the array would represent the nation for player 1, etc
Unless like you say Tychus is always blue, then it is simply part of the model... you can probably somehow overlay a color through Site Operations but I'm not familair with that
For that condition use
((Killing unit) kills (Current mod 10)) == 0
Also I see that you are using a while, try to avoid them, they can be evil - your game will be stuck in the while until it breaks from its condition, so only use a while loop if you know 100% sure its conditions are going to be true very soon
In this case a regular if statement would suffice
And about my libCHS - there is a big fat new update, check the forum topic, replace the old one (works the same way) - it is MUCH better now
0
Updated to v2.1
Now a real library with actions
Need a way to change localization of a library! Sadly it is stuck on enGB / enUS now
0
The image should scale just fine, my buttons with icons are 80x80
Anyway you dont need to show dialog items, they are shown by default (unlike dialogs)
But what is the problem now? There are no images in your code to display Simply add them with the same coordinates and offset and they will be fine
0
Have not used queues myself
Yes you are being too complicated :P You can simplify your code code with logic and avoid these too many threads
I suggest you go through your entire code and really look at it all and realize what everything does, then you should find it
0
Ok that is a bit messed up :P
But why do you need to change number? You could always use teams or somesuch workaround
0
then make sure the image dialog is created first so the button dialog is ontop, then it can be pressed also use Fade Dialog Item Transparency (fade time of 0) to set the button transparency
I cant see why your image is missplaced but thats only cause your screenshot isnt up to date, but it most definetly is a tiny mistake somewhere, look it all over carefully
0
@Swedishcow: Go
Was a reply mostly to the OP
(also general advice not to use set dialog item image)
0
The player number always equals the player slot you took in the lobby. You can find the number/colors in the Player Properties.
For example, player 1 (the host) will be red. The host will still be player number 1 in the game
0
Dont use Set Dialog Item Image - it always stretched and cant be used, bugged, you have to create 2 dialog items ontop of eachother - 1 button and 1 image of the same size but the OP is already doing that
You are setting the Archon Icon as Last Created Dialog Item without ever having made a dialog item or is it not made in this trigger?
Then you made the Archon Image and set it to High Templar variable
0
Without reading anything - I think it might be your while loops
Muahaha!
Ok seriously now:
if-then-else if-then-else if-then-else
or
if-then-else
--if-then-else if-then-else (formatting messed up but its copy paste from your post)Those 2 ways are not the same, the first way does the 'then' part, then skips else, then goes into the next 'then' (assuming it passes conditions)
The second way ONLY goes into the second 'then' if it does NOT go in the first 'then' So basically, it only goes into the second statement if it fails the conditions of the first statement
0
@afire007: Go
Check out the first post, there is a localizer link Use that on the map before opening it
@Shendoo2: Go
Hero buying system sounds like a new library :P Perhaps not a bad idea, we will see
0
@pinzu: Go
I'll do that in combination with secret hero - any hero in the circle but not allowed to select will only be available from a random (or not at all - will make option)
@Shendoo2: Go
0
2 options
Option 1 - Create a global variable for each nation Make it a boolean array, size = max amount of players
When a player selects that nation, the (index - 1) of the array of that nation gets set to true (you use index - 1 because the array starts at 0, but player numbers start at 1) Then to check you who belongs to that nation, you just do Pick Each Integer from 0 to max amount of players with an if statement if true
Option 2 - Make an integer array with size max amount of players, index 0 of the array would represent the nation for player 1, etc
0
There is a trigger for that - Set Unit Color
Unless like you say Tychus is always blue, then it is simply part of the model... you can probably somehow overlay a color through Site Operations but I'm not familair with that
0
If you want to chat, come to IRC - http://webchat.freenode.net/?channels=SC2Mapster or PM me on forums (irc is faster)
For that condition use ((Killing unit) kills (Current mod 10)) == 0
Also I see that you are using a while, try to avoid them, they can be evil - your game will be stuck in the while until it breaks from its condition, so only use a while loop if you know 100% sure its conditions are going to be true very soon In this case a regular if statement would suffice
And about my libCHS - there is a big fat new update, check the forum topic, replace the old one (works the same way) - it is MUCH better now
0
Use modulo
if (X mod 10 = 0) then X was 10, 20 or 30 etc