• 0

    posted a message on Localization problem - ENG/IT

    For future, Do not cross locale (editor language) while editing same map.

    Posted in: Data
  • 0

    posted a message on [Library] QuickCat by BasharTeg

    I would recommend adding some tick counter when you use repeat forever (which could be replaced by 'while' btw). Then when counter mod 1000 == 0 you call wait 0.0 (Wait 0 actually waits quite a lot once you add it up.)

    It's function with return which do not (and can't) run on separate thread so often waits will lead to unnecessary slowdown.

    Posted in: Trigger Libraries & Scripts
  • 0

    posted a message on Pathing Cost doesn't go high enough for my map.
    Quote from KamikazeKomics: Go

    ...but they took a shortcut through the middle of a chasm that should have been non-traversable

    if this chasm is static part of terrain you can simply use pathing tool in terrain module (just in case you wouldn't know).

    Posted in: Triggers
  • 0

    posted a message on Can I change button's icon by CatalogFieldValueSet() function?
    Quote from Kueken531: Go

    @Zolden: Go

    Ah, I was pretty sure, I found the icon in upgrades before; however its only the Alert Icon you can change.

    Default armor etc upgrades use icon modification for unit panel but it's slightly different. Maybe you remember that.

    Quote from Kueken531: Go

    @Nerfpl: Go

    Still, does this mean, that you found fields, which can be changed with upgrades, but not via trigger?

    Nope, 100% things changeable with upgrades were changeable with triggers but i didn't checked like all fields in editor to say it's a sure rule.
    So i said it's 95% just in case someone finds this one field which may not follow this rule /trollface

    After all we are limited to what we learn ourselves due lack of technical documentation.

    Posted in: Triggers
  • 0

    posted a message on Online banks?
    Quote from Arnh: Go

    Sad

    Do you know if blizzard will add such a thing in the future?

    Nope. They are afraid to run out of storage space in age of terabytes with their silly 8kb banks.

    Posted in: Triggers
  • 0

    posted a message on Can I change button's icon by CatalogFieldValueSet() function?

    Not all catalog fields are changeable.
    If something is changeable via Upgrades it's 95% changeable via triggers.
    Button icons are not.

    Posted in: Triggers
  • 0

    posted a message on (Solved) Make unit invincible to only one player.

    This will work with possible exception when player 1 shot the unit.

    Event: Unit takes damage
    Actions:
    if (owner of damaging unit) != player that can damage
        set triggering unit current life = triggering unit current life + damage taken amount;
    

    Data approach would probably require behavior with 100% damage reduction and validator comparing attacking player.

    You could otherwise create more versatile setup which would require 15 validators (compare player X ) and 15 behaviors which would reduce damage by 100% for given player linked to corresponding validator.
    Name them something like "Immunity against player X"

    Ups, validators cannot compare player index

    Posted in: Miscellaneous Development
  • 0

    posted a message on 10 Things A Gamer Must Have/Do - Not Literally
    Quote from Doubleclick123: Go

    @Nerfpl: Go

    I'm impressed... And kinda grossed out.

    Why? Are you non-male? :D

    Posted in: Off-Topic
  • 0

    posted a message on Simple bank questions
    Quote from Ahli634: Go

    Preload creates a xml file named "BankList.xml" with bank names to load afaIk. The action itself might have no real effect (only in editor). Blizzard did the same placebo actions to configure stuff in Starcraft Broodwar with "Preserve Trigger" which only set a flag in the editor while the action itself did nothing.

    If you got no preload, you might have that file within your map already.

    Technically it does not create the actual galaxy code, but it is still required.
    SBeier described this as sort of command for compiler. (not sure if that was exact description).

    So anyway it should be there. Really, as i said, it's just 1 call per player, what's the deal

    Posted in: Triggers
  • 0

    posted a message on 10 Things A Gamer Must Have/Do - Not Literally
    Quote from Doubleclick123: Go

    4 - Condoms... "We all need them" RedTube in bookmarks

    Posted in: Off-Topic
  • 0

    posted a message on Simple bank questions
    Quote from Lonami: Go

    So there's a default return value, that's interesting, may not need "check if exists" then.

    As for preload, I think I have some example map where it doesn't preload. Did I miss it, or there's situations where it isn't necessary?

    If you don't preload it means you don't use banks. Btw what's the deal. It's just 1 function call per player on init.

    Posted in: Triggers
  • 0

    posted a message on Difference between Dubstep and Hip hop?
    Quote from Taintedwisp: Go

    @xcorbo: Go

    To put it in easier terms.

    Dubstep is to Add movement to sound, Therefore making it more of an art form then a dance.

    Where as Hiphop(breakdancing)

    Is idiots in the ghetto moving to impress someone who is uneducated completely.

    How I know this? I grew up at the top of the ghetto lol. I hung around these idiots when I was younger.... and I mean Idiots... ITS PRONOUNCED COMPUTER NOT CUMPRUTER!!!!!! GOT DANGET!!!

    I Suspected you got some bugs in your head. Now i'm sure :)

    Posted in: Off-Topic
  • 0

    posted a message on Simple bank questions
    What is preload exactly for?
    Banks need to be loaded to server
    You need to save the bank each time you store something? what if you don't save after storing?
    Open banks are in memory. To save it back to player's file you need to use save.
    What are sections for? Do you really need them, or they're just to classify stuff better?
    They let you categorize data
    If you don't have a bank / section / key, it generates itself? what if you try to load something that doesn't exist?
    Non-existing bank will be created on save, In memory on preload ( i believe )
    Sections and keys are generated/overwritten on adding (there's no function like create section or key)
    If values don't exist it will return default value. It depends on type. Int = 0, Bool = false, Unit = null = no unit etc.
    Posted in: Triggers
  • 0

    posted a message on Pathing Cost doesn't go high enough for my map.

    @Kueken531: Go it's should be easy to calculate, but it depends on how the function actually checks the pathing, using what radius; knowing nature SC2 the fraction is probably not that small.


    In editor full square is minimal 0.25x0.25 so there's 4x4 grid per 1x1 square.
    Longest possible pathing at this square would be 2,5 if outside is considered unpathable. So yea in this case its 256^2 * 2,5 = 163840.
    But that's if your using blocking less than 1x1 which from what i noticed doesn't allow to place units even with 0 radius; also i doubt he's using such small blocks.

    So if you'r using minimal 1x1 blocks any block will reduce total of 65536.

    Anyway. If you design such test maze. Longest possible would look like

    OOOBOOOB
    OBOBOBOB
    OBOBOBOB
    OBOOOBOO
    

    Anything different will have smaller pathing cost.


    This, or i just have bad day and it's all incorrect


    @KamikazeKomics: Go There's a lot of possible pathing blockers. Structures, maybe units.

    Get to the point (in time) where your pathing cost is over 65536. Pause any changing to terrain,maze, Spawn unit and send it where you want. You can track it and it will eventually stop at point of block.

    Posted in: Triggers
  • 0

    posted a message on Triggered-based Abilities

    Try this

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