• 0

    posted a message on Custom health bars - how to?

    @Simoneon: Go

    make a dialog with those 5 bar images. store them in bararray[5]
    On update.

    real hpp = unit life percent / 20
    for each integer i from 1 to 5 step 1
      if (Real(i) < hpp+1.0)
        show bararray[i] for player x
      else
        hide bararray[i] for player x
    
    Posted in: Triggers
  • 0

    posted a message on Galaxy++ editor
    Quote from Kestudy: Go

    However have you the documention in an other support than there : http://www.sc2mapster.com/assets/galaxy-editor-beier Because it's annoying to move the screen on right and left to read the full sentences.

    it depends on your resolution, font size and browser overall.


    If you'r using Chrome i recommend Style Bot extension. With it you can display any site any way you want.

    Posted in: Third Party Tools
  • 0

    posted a message on Game link - upgrade variables not working while stored in records

    For whatever reason 'Any game link' doesn't like structs.

    make famous 'takes string returns string function' and it will work

    UpgradeToString
        Options: Function
        Return Type: String
        Parameters
            u = No Game Link <Game Link - Upgrade>
        Grammar Text: UpgradeToString(u)
        Hint Text: (None)
        Custom Script Code
        Local Variables
        Actions
            General - Return lp_u
    
    Posted in: Triggers
  • 0

    posted a message on Game link - upgrade variables not working while stored in records

    make sure your struct init is above calling function.

    Posted in: Triggers
  • 0

    posted a message on [Fixed] Format Number
    Quote from Hookah604: Go

    I dont know what did blizzard do but its now even worse than before. Its now sometimes showing .00 after number and sometimes not. (I wasted half hour cause I thought they actually fixed that)

    Indeed. I had same situation. I ran my map and suddenly it was all with .00000

    Posted in: Galaxy Editor Bugs and Feedback
  • 0

    posted a message on NitG

    You're Welcome. If you find any bugs/errors pm me or post here.
    Just check download link to make sure you have latest version. I keep finding new bugs

    Posted in: Third Party Tools
  • 0

    posted a message on [Trigger Help] Buffs to created units by triggers and created by other units
    Quote from RogueSniper: Go

    If I create units at first it applies but after awhile it wont apply the buffs to them.

    It doesn't work this way. Either trigger works or not. Maybe you change something after "a while" and it makes trigger not work.
    Also you didn't mention how you create your units.
    If it's via Behavior then you use 'Unit is Created' event.
    If it's via 'Create Unit' then you may use 'Unit enters region (map)' or simply preform action right after creating unit in same trigger/action.

    Quote from RogueSniper: Go

    some errors that don't really make sense.

    Indeed, that makes no sense.

    Quote from RogueSniper: Go

    I have a unit if its in a region, easy, medium, hard it should apply 2 buffs (not to the unit in one of those three regions but to all units on the map) - 1 buff to all human player units already created or to be created - 1 buff to all NPC player units that will be created by a trigger

    When unit enters region use 'Unit enters region' event, 'Pick units in (units in region (map) owned by specific player)' and apply buff to picked unit.
    When unit leaves region use 'Unit leaves region' event, 'Pick units in (units in region (map) owned by specific player)' and remove the buff from picked unit.
    When it comes to created units. Whenever you should apply the buff (after creation) you can pick all units in your buff region, 'If owner of (picked unit) == owner of (created unit) then apply the buff'

    Posted in: Triggers
  • 0

    posted a message on [Libraries]What exactly do they do?
    Quote from bulletbutter: Go

    So basically it's the same thing as simply copy/pasting triggers from one map to another?

    That's obvious. Any library in any computer language could simply be copy pasted in code form. Point is to have it as sort of extension. Also as bonus libraries can hide their internal variables and functions so all you get is an clean API to work with.
    Tho in galaxy libraries are fairly limited as there's no class support, not even struct parameters/return so in the end you will still work with Strings, Integers etc

    Posted in: Triggers
  • 0

    posted a message on How AI sends attack wave technically?

    in case of units AI you can see it, Im not sure about waves but i guess you also can.

    Click Modules or whatever in upper menu, find console, type browse, there are all those triggers. AI and everything is in galaxy.

    Posted in: Galaxy Scripting
  • 0

    posted a message on NitG

    NitG

    Assets Page

    Description

    Did you ever had this "dream" about having lots of items in you map?
    Did you tried to make this dream come true?
    How much your mental health suffered in this process?

    With Nerfpl's Item Generator this never been easier!
    Features:

    • Tier, Prefix, Suffix based. Any combination with any amount of base item templates is possible.
    • Any amount of levels.
    • Availability of tier, prefix, suffix per level.
    • Availability of prefix, suffix per class.
    • Automatic tooltips.
    • Supports custom attribute behaviors.
    • Session saving.
    • Everything customizable.
    • XML Output
    • Possiblity to Inject data into map (Thx to SBeier)
    • Short Manual

    How to use

    Well, everything is explained in tooltips also theres Tutorial button if you need.
    It goes something like this

    • Define base item - skeleton/template. This item can have base values like 10 damage etc. Also it defines certain aspects like button or class.
    • Optionally at this stage you should define any attribute behaviors you want to use.
    • Define base growth if you need. This will cause item to 'grow' in stats with each level.
    • Define list of Prefixes and Suffixes. Those are created for each possible combination of item unless they are filtered for defined conditions.
    • Define list of Tiers. Those are multiplers for item's stats. For example 'Weak' item can have 0.7 multiper for stats were 'Epic' 2.0 etc. In addition those define item color name and global actor per tier.
    • Configure how you want all stats to be named, how to display thier values in tooltips etc.
    • Hit Generate
    • Now you can either copy paste XML Data (right click to avoid paste limit) or use Inject to save directly to your map.

    Requirements

    Microsoft .NET Framework 4 (Should be on any modern system)

    Download



    Posted in: Third Party Tools
  • 0

    posted a message on solved Reviving Hero

    compare player, or Player in Player Group. If in Group (Players on team 1) create unit here, else create unit there

    Posted in: Triggers
  • 0

    posted a message on When is it time to use "AddTriggerEvent" functions rather than using generic events + conditions?

    no matter what you will end up with big amount of event firing.

    My personal approach is that i never use one type of event more than once. I redirect all data to custom actions and then they check is it their data and should they do their logic or not.

    I use TriggerAddEvent only when i know i have some collection of objects which otherwise would have to be iterated thru. But that's only the case if i apply actions on triggering object itself, or is easy to identify linked object. Otherwise it makes no sense since i will have to iterate thru collection anyway.

    For example i have "Create close button" action for dialogs. It takes dialog, creates button, adds the button event to initially empty trigger, and trigger only references dialog containing used item and hides it.

    2 - You can't really say. Heck we don't know if it's for example unitA rising event directly or is found in similar manner as 'any'. There's not enough (if any) technical info about Galaxy.

    3 - This is also somehow risky due mentioned lack of info. You don't know what happens with event if linked object does not exist anymore. Sometime it may result in 'Any'

    Posted in: Triggers
  • 0

    posted a message on What locales are there?

    great, big thanks!

    Posted in: Miscellaneous Development
  • 0

    posted a message on What locales are there?

    ok, got 3 new, thanks. Any more? :)

    Posted in: Miscellaneous Development
  • 0

    posted a message on What locales are there?

    How, other than enGB, map locales are named?

    i guess there's one for US and one for ?Chinese?

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