• 0

    posted a message on [Library] Hero Selection v3.0.1 Final

    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

    Posted in: Trigger Libraries & Scripts
  • 0

    posted a message on Dialog Problems

    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

    Posted in: Miscellaneous Development
  • 0

    posted a message on "Too many threads"

    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

    Posted in: Miscellaneous Development
  • 0

    posted a message on Making Player slots match in game player number?

    Ok that is a bit messed up :P

    But why do you need to change number? You could always use teams or somesuch workaround

    Posted in: Miscellaneous Development
  • 0

    posted a message on Dialog Problems

    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

    Posted in: Miscellaneous Development
  • 0

    posted a message on Dialog Problems

    @Swedishcow: Go

    Was a reply mostly to the OP

    (also general advice not to use set dialog item image)

    Posted in: Miscellaneous Development
  • 0

    posted a message on Making Player slots match in game player number?

    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

    Posted in: Miscellaneous Development
  • 0

    posted a message on Dialog Problems

    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

    Posted in: Miscellaneous Development
  • 0

    posted a message on "Too many threads"

    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

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Library] Hero Selection v3.0.1 Final

    @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

    Posted in: Trigger Libraries & Scripts
  • 0

    posted a message on [Library] Hero Selection v3.0.1 Final

    @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

    1. 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
    1. Not a bad idea
    1. Yes absolutely :)
    Posted in: Trigger Libraries & Scripts
  • 0

    posted a message on Lobby/Player Selection and Trigger Connections

    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

    Posted in: Miscellaneous Development
  • 0

    posted a message on How to set the team colour for the hero?

    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

    Posted in: Galaxy Scripting
  • 0

    posted a message on [Triggers]Check if a units kill count is a multiple of 10?

    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

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Triggers]Check if a units kill count is a multiple of 10?

    Use modulo

    if (X mod 10 = 0) then X was 10, 20 or 30 etc

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.