• 0

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

    @skyshatter0520: Go

    Its cool that you had a noob mistake. But could you at least post the map back up somewhere so users who dont know how to localize it can still learn from this?

    This map is extremely useful for many people incorporating any unit selection. A localizer would be immensely helpful for USA. Problem is no one is really helping out at all. And its nearly impossible to understand what trigger is doing what if all the Dialogue variables and items all contain "No dialogue" and/or "No value" simply because of localization problems.

    Help out some members man. Dont just run off saying "I fixed it!" and not post anything. Reposting the map localized for NA USA, would not only help the guy who created this tutorial, but it would also help us out.

    ive been seeing so many posts in numerous tutorials where people found problems with the map, and simply ran off saying "I fixed it" but they never post the fixed map at all.

    Posted in: Trigger Libraries & Scripts
  • 0

    posted a message on [Misc] Simple TD Tutorial - 8 Parts (sc2galaxyeditor.com)

    Yes i love you vjeux lets make love.

    I finally found a wave tutorial WOooO!!!!

    Posted in: Tutorials
  • 0

    posted a message on Has anyone here made a working leaderboard?

    If your leaderboard can update itself player by player that would be great!, thanks!

    Posted in: Miscellaneous Development
  • 0

    posted a message on Has anyone here made a working leaderboard?

    Has anyone here actually made a working leaderboard, that is capable of keeping track of MULTIPLE users/computers in the game and all of their data (kills, level, life etc....)?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Incrementing variable in leaderboard?

    Bah still not displaying. Here is my new code:

        Events
            Game - Map initialization
        Local Variables
        Conditions
        Actions
            Leaderboard - Create a leaderboard with 5 columns and 2 rows, with the name "Thor Stats", and using (100%, 0%, 0%) color.
            Variable - Set LeaderBoard = (Last created leaderboard)
            Leaderboard - Set LeaderBoard item text at column 1 and row Header to "Player"
            Leaderboard - Set LeaderBoard item text at column 2 and row Header to "Kills"
            Leaderboard - Set LeaderBoard item text at column 3 and row Header to "Level"
            Leaderboard - Set LeaderBoard item text at column 4 and row Header to "Health"
            Leaderboard - Set the automatic player column for LeaderBoard to column 1 (Do group by teams)
            ------- Players
            General - For each integer IntegerA from 1 to 4 with increment 1, do (Actions)
                Actions
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Status of player IntegerA) == Playing
                        Then
                            Leaderboard - Add player IntegerA to LeaderBoard
                        Else
            Leaderboard - Enable Showing state for LeaderBoard for (All players)
            Leaderboard - Set LeaderBoard item icon at column 1 and row Header to Assets\Textures\btn-unit-terran-thor.dds, placing it on the Left side of the text
            Leaderboard - Set LeaderBoard item icon at column 2 and row Header to Assets\Textures\btn-ability-protoss-blackhole.dds, placing it on the Left side of the text
            Leaderboard - Set LeaderBoard item font size at column All Columns and row Header to Tiny
            Leaderboard - Set LeaderBoard item font size at column All Columns and row All Rows to Tiny
    

    KillCounter

        Events
            Unit - Any Unit dies
        Local Variables
        Conditions
            (Triggering unit) != Ghost [239.46, 8.67]
        Actions
            Variable - Set Kills[(Killing player)] = (Kills[(Killing player)] + 1)
    

    Kills Operator

        Events
            Timer - Every 0.3 seconds of Game Time
        Local Variables
        Conditions
        Actions
            General - For each integer IntegerA from 1 to 4 with increment 1, do (Actions)
                Actions
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Status of player IntegerA) == Playing
                        Then
                            Leaderboard - Set LeaderBoard item text at column 2 and row IntegerA to (Text(Kills[IntegerA]))
                        Else
    
    Posted in: Miscellaneous Development
  • 0

    posted a message on Incrementing variable in leaderboard?

    What you said makes sense, so i corrected what you said, but now im getting an Array Index out of bounds exception in my UnitKillsCount

    Edit: O wait a friggin second i know what i did wrong one sec.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Refer to a unit that hasnt been created yet

    Bump i thought ti would work but it didnt. You cant assign (Last created unit) with a unit type variable.

    Edit: I tried making a global variable Unit, and then assigning that Unit (Last created unit) in my hero selection trigger. Still didnt recognize the unit.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Incrementing variable in leaderboard?

    Anyone have an idea of how this should be done?

    And no the number Kills[] is for some reason not displaying, im assuming its in a wrong row or something, but i need someone to review the code for any errors.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Refer to a unit that hasnt been created yet

    Wiat a sec this doesnt work. You cant assign a Unit type variable with a last created unit.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Refer to a unit that hasnt been created yet

    How do you refer to a unit that hasnt been created yet and in another trigger?

    Im trying to refer to whatever unit Player one picked, but i cant use Last created unit, because that doesnt take values from other triggers.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Incrementing variable in leaderboard?

    My integer A is essentially your "Player" variable. And i do believe (Triggering Player) returns a number so that should be just fine.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Incrementing variable in leaderboard?

    Your right, okay i changed my algorithm to match SCII's slightly different system this time around, maybe i was to quick to judge. If I can get this one thing working, ill post an advanced leader board tutorial for people that wanna see how to display level of a unit, health %, and etc etc...

    I followed the idea you gave me there and here is my new algorithm, It should work, everytime i follow the logic it just makes sense, yet the kill count is still not displaying so here goes.

    Local Variables:

    Kills = 0 <integer[5]> (Only 4 players in my game right now extra slot for safety incase i made a bad loop that overflows)
    
    LeaderBoard =(LastCreatedLeaderboard)
    
    IntegerA = 0 (Increment Variable)
    

    Leader Board Trigger

        Events
            Game - Map initialization
        Local Variables
        Conditions
        Actions
            Leaderboard - Create a leaderboard with 5 columns and 2 rows, with the name "Thor Stats", and using (100%, 0%, 0%) color.
            Variable - Set LeaderBoard = (Last created leaderboard)
            Leaderboard - Set LeaderBoard item text at column 1 and row Header to "Player"
            Leaderboard - Set LeaderBoard item text at column 2 and row Header to "Kills"
            Leaderboard - Set LeaderBoard item text at column 3 and row Header to "Level"
            Leaderboard - Set LeaderBoard item text at column 4 and row Header to "Health"
            Leaderboard - Set the automatic player column for LeaderBoard to column 1 (Do group by teams)
            ------- Players
            General - For each integer IntegerA from 1 to 4 with increment 1, do (Actions)
                Actions
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Status of player IntegerA) == Playing
                        Then
                            Leaderboard - Add player IntegerA to (Last created leaderboard)
                        Else
            Leaderboard - Enable Showing state for LeaderBoard for (All players)
            Leaderboard - Set LeaderBoard item icon at column 1 and row Header to Assets\Textures\btn-unit-terran-thor.dds, placing it on the Left side of the text
            Leaderboard - Set LeaderBoard item icon at column 2 and row Header to Assets\Textures\btn-ability-protoss-blackhole.dds, placing it on the Left side of the text
            Leaderboard - Set LeaderBoard item font size at column All Columns and row Header to Tiny
            Leaderboard - Set LeaderBoard item font size at column All Columns and row All Rows to Tiny
    

    Kill Counter trigger

        Events
            Unit - Any Unit dies
        Local Variables
        Conditions
        Actions
            Variable - Set Kills[(Triggering player)] = Kills[((Triggering player) + 1)]
    

    Kill count operator (basically just does the incrementing and updating of kill count on the leaderboard)

        Events
            Timer - Every 0.3 seconds of Game Time
        Local Variables
        Conditions
        Actions
            General - For each integer IntegerA from 1 to 4 with increment 1, do (Actions)
                Actions
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Status of player IntegerA) == Playing
                        Then
                            Leaderboard - Set LeaderBoard item text at column IntegerA and row 1 to (Text(Kills[IntegerA]))
                        Else
    
    Posted in: Miscellaneous Development
  • 0

    posted a message on Incrementing variable in leaderboard?

    Alright guys this is what im trying to do

    Im trying to add as many players to the leaderboard with as many that are actually playing. Meaning that even if my game supports up to 8 players i will do an increment from 1-8, adding only as many players that are in the game (meaning if there are 4 only 4 players will be added even though the game supports up to 8 players). I successfully managed to do this.

    Now what i have to do is make another increment for the kills

    Change the value (Player((Integer A))) in (Last created leaderboard) to Kills[IntegerA] This will set the kill array to update multiple users who play the game

    Only problem is starcraft doesnt really have a configuration like this which kinda upsets me considering Warcraft III had a far more intricate Trigger system than Starcraft II, however Starcraft II has a far better data editor.

    in warcraft III this was crucial for whenever i created a wave game, as it allowed the game to only keep track of data for as many players as there were in the game.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Problem with Leaderboard

    Anyone thinking of doing a tutorial on an advanced leaderboard? With not only player names and kill count, but the level of a hero and the current life of the player?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Which is faster: regions or large unpathable objects?

    use the pathing layer option, its sooooooo much faster and easier.

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