1. Join other hivers in a friendly concept-art contest. The contestants have to create a genie coming out of its container. We wish you the best of luck!
    Dismiss Notice
  2. The Melee Mapping Contest #4: 2v2 - Results are out! Step by to congratulate the winners!
    Dismiss Notice
  3. We're hosting the 15th Mini-Mapping Contest with YouTuber Abelhawk! The contestants are to create a custom map that uses the hidden content within Warcraft 3 or is inspired by any of the many secrets within the game.
    Dismiss Notice
  4. The 20th iteration of the Terraining Contest is upon us! Join and create exquisite Water Structures for it.
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice

[General] Fast Way to Convert all GUI triggers to JASS

Discussion in 'World Editor Help Zone' started by tulee, Jun 14, 2019 at 11:03 AM.

  1. tulee

    tulee

    Joined:
    Jul 26, 2008
    Messages:
    700
    Resources:
    5
    Maps:
    5
    Resources:
    5
    Searched through hive looking for a similar answer but could not find any answer that matched this question.

    Was just wondering if there is a faster way to convert all GUI triggers in a map/campaign than by right-clicking each individual one and converting to custom script.

    If not no problem, was just curious. Thanks~~
     
  2. millzy

    millzy

    Joined:
    Jul 9, 2008
    Messages:
    1,532
    Resources:
    6
    Maps:
    5
    Spells:
    1
    Resources:
    6
    there would be no point in doing this unless u are planing to edit after converting to custom script.

    i dont believe there is a way to do multiple at a time either
     
  3. tulee

    tulee

    Joined:
    Jul 26, 2008
    Messages:
    700
    Resources:
    5
    Maps:
    5
    Resources:
    5
    Ah ok, good to know. Thanks millzy.
     
  4. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,565
    Resources:
    17
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    17
    Yeah JASS is only faster if you write it from scratch, because GUI converted to JASS is so horribly bad just editing a few lines would not be nearly enough.
     
  5. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,271
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    However doing it for speed reasons can be considered micro optimization. It only really makes a difference after algorithmic improvements at bottlenecks are depleted.
     
  6. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,565
    Resources:
    17
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    17
    Maybe. Just swapping out certain BJ functions can save a whole lot of function calls.

    But I get you, restructuring an if then else does not do much performance wise. It just makes it look less like a mess.