1. The contestants were to create water structures for the 20th Terraining Contest. Choose one in the public poll!
    Dismiss Notice
  2. 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
  3. The Melee Mapping Contest #4: 2v2 - Results are out! Step by to congratulate the winners!
    Dismiss Notice
  4. 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
  5. Check out the Staff job openings thread.
    Dismiss Notice

[vJASS] Textmacro in patch 1.30?

Discussion in 'Triggers & Scripts' started by Carnerox, Nov 26, 2018.

  1. Carnerox

    Carnerox

    Joined:
    Aug 12, 2010
    Messages:
    25
    Resources:
    0
    Resources:
    0
    I tried searching around but I haven't been able to find something to resolve my issue. Whenever I try to save a map containing a textmacro like this, for example, in the AIDS system it uses this line.

    Code (Text):
    //!          external ObjectMerger w3a Adef AIDS anam "State Detection" ansf "(AIDS)" aart "" arac 0
    I get this error when I save the map.

    [​IMG]

    Is the current editor unable to support the text macros or is there a work around? Thanks!
     
  2. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,567
    Resources:
    17
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    17
    I never got it to work consistently even back on 1.26
     
  3. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,420
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    I believe the current editor supports vJass but not Grimoire Extensions. So the external command won't work. In your case, I would download the test map for AIDS and copy + paste the "State Detection" ability into your map. You can get the test map here:
    System - Advanced Indexing & Data Storage

    Then get rid of the
    //! external
    line, and change this line appropriately:
    Code (vJASS):

    private constant integer LEAVE_DETECTION_ABILITY = 'AIDS'
     


    (For example, if "State Detection" has an object ID A000, you would put
    'A000'
    in place of
    'AIDS'
    )
     
  4. Pyrogasm

    Pyrogasm

    Joined:
    Feb 27, 2007
    Messages:
    2,436
    Resources:
    0
    Resources:
    0
    You can just put a space between // and ! to turn the external command into a comment and leave it intact so you can see what used to be there.