• 0

    posted a message on A trigger to detect any ability used by any unit?

    Baldey what your asking for can only be done like soulcarverr says. The thing is i doubt blizz will ever have an event possibility that responds to any ability used. The problem is that like said above everthing is an ability so that means your trigger would be run just about every 0.001 second regardless of what your doing.
    This would hog down your map so badly it would hardly run.
    The game already maps an event for every single ability you have, use or create so all you have to do is call on that event thats already being triggerd.

    Even if you think this would create alot of cluter in your code it still will be by far the best and only method to do it without causing preformance problems

    Posted in: Triggers
  • 0

    posted a message on How to simulate "kills" condition

    Well actually you can use the custom value as it has an index just like an array.
    If you would make a trigger that defines a unit type per index number in the custom value you can store the kill count per unit type

    Posted in: Triggers
  • 0

    posted a message on Question concerning dialog items and multiple players

    Yes in every action that you can fill in the "All Player" preset you can select the individual player to show something different for every player off the same dialog item.

    Posted in: Triggers
  • 0

    posted a message on Pick each integer - within a pick each integer - possible?

    using 2 pick each int loop should work just fine.

    I personally rather use while loops but please dont use a for loop nesting like Kueken531 sugests he even gives the reason why not too LMAO

    Posted in: Triggers
  • 0

    posted a message on Unit Type

    ((Unit type of (Triggering unit)) is Hero) == true

    This is the comparison used

    Comparison
    Value 1: Unit Type Classification Check
    Unit: Unit Type Of Unit
    Unit: Triggering Unit
    Flag: Hero
    Operator: ==
    Value 2: true

    Posted in: Triggers
  • 0

    posted a message on Dialog Leaderboard - Updating Question

    glad to hear i was able to get a new approch going

    That string is an "integer to string" conversion
    Picked player number is an integer :)

    If you need any assistance just let me know

    Posted in: Triggers
  • 0

    posted a message on Changing Damage Done Via Triggers?

    TBH i agree with rrowland but if you must do it with triggers i would sugest looking into custom values on unit to define how much from which types of units

    Posted in: Triggers
  • 0

    posted a message on Dialog Leaderboard - Updating Question

    Btw one more thing.

    When removing a computer from the game with end game trigger it does not register the event "player leaves" as the player actually didnt but was removed(event victory/defeat not leave). You would need to manually update the info on the board if you use triggers to remove a player.

    The event leave is triggerd mostly when the player clicks on the "Show Score Screen" button. The computer players do not do this.

    Posted in: Triggers
  • 0

    posted a message on Dialog Leaderboard - Updating Question

    Ok this should work fine

    First part is a separate action i call in my main trigger this will create all the dialog labels in the dialog at the position of X an Y with the players name in thier color
    Built in inc of 34 pixels to stack em up neatly underneath each other.
    Also note im refering to my dialog data table entry "Balance Dialog Main" i sugest you add your main dialog/leaderboard to the data table as well to refer to it here.

    Second part is the update section for if someone leaves

    And last line is the trigger action call i make in my main trigger to get everything going (using my own dialog to test so has modifyd xy pos

    Init Player list
        Options: Action
        Return Type: (None)
        Parameters
            X = 0 <Integer>
            Y = 0 <Integer>
        Grammar Text: Init Player list(X, Y)
        Hint Text: (None)
        Custom Script Code
        Local Variables
        Actions
            Player Group - Pick each player in (Active Players) and do (Actions)
                Actions
                    Dialog - Create a label for dialog ("Balance Dialog Main" from the Global data table) with the dimensions (200, 32) anchored to Top Left with an offset of (X, Y) with the text (Name of player (Picked player)) color set to (Color((Current player (Picked player) color))) text writeout set to false with a writeout duration of 2.0
                    Data Table - Save (Last created dialog item) as ("Player " + (String((Picked player)))) in the Global data table
                    Variable - Set Y = (Y + 34)
    
    Player leaves
        Events
            Player - Player Any Player leaves the game with Any
        Local Variables
        Conditions
        Actions
            Dialog - Set (("Player " + (String((Triggering player)))) from the Global data table) text to "-=LEFT=-" for (All players)
    
    Init Player list(350, 25)
    

    If you use these three parts it will work as intended :)

    Posted in: Triggers
  • 0

    posted a message on Dialog Leaderboard - Updating Question

    ok thats going to fail :P

    Let me get back to ya i think i know what you need

    Posted in: Triggers
  • 0

    posted a message on Dialog Leaderboard - Updating Question

    if i understand correctly you could use "Picked Player" instead of "All Players" at the end of the second trigger.

    That would update it individualy for every player in the same spot

    Posted in: Triggers
  • 0

    posted a message on Dialog Leaderboard - Updating Question

    After creating the dialog item that shows the value in text (label) use this trigger to save it to the data table

    Data Table - Save (Last created dialog item) as ("<<Any name you want to call it in the datatable>>" ) in the Global data table
    

    Then when you want the dialog to be updated use this one to do it

    Dialog - Set ("<<name of item>>"  from the Global data table) text to (Text("<<Convert your value to text here>>")) for (All players)
    

    Using the data table makes it alot easier to refer to the item in what ever function or action you want to use it in.

    Posted in: Triggers
  • 0

    posted a message on Is it possible to modify a unit collision points and plane array with triggers?

    Ya i guess i could do that. i pretty much stripped down and rebuilt your triggers if thats what your interested in

    I removed the offset en movement type section as i figure i can create a far better exclusion model for units that are not to be affected without filling up major arrays. Just havn't completed that as this technique is to cpu intensive for what i need it to do so i'm busy on something else atm.

    The offset part i might be adding back in though as that is more or less a "dot the i" type of thing but for testing purposes irrelevant

    http://www.megaupload.com/?d=11VA2CY3

    Oh dont forget to create units in the map hit the small plus button in the dialog in the section "Units"

    Posted in: Triggers
  • 0

    posted a message on Unit Enters Range of Point Broken?

    Try using a Region instead of map area

    Posted in: Triggers
  • 0

    posted a message on Is it possible to modify a unit collision points and plane array with triggers?

    I acctually have the system up and running 100% perfect but its not usable sadly :(

    With a few units its no problem but when i select 100+ and move them over the water i have an FPS drop of 25% due to the timer (vertical sync disabled and multi threading enabled)

    Im going to need something else to pull this off

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