1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. The Results have come out of the old ARENA oven. Check out who won the 30th Texturing Contest!
    Dismiss Notice
  3. Hey guys, we've posted the Results for the 30th Modeling Contest. Check them out!
    Dismiss Notice
  4. The 15th Mini-Mapping Contest came to an end. The Secrets of Warcraft 3 are soon to be revealed! Come and vote in the public poll for your favorite maps.
    Dismiss Notice
  5. The 12th incarnation of the Music Contest is LIVE! The theme is Synthwave. Knight Rider needs a song to listen to on his journey. You should definitely have some fun with this theme!
    Dismiss Notice
  6. 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
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

How To Import A Spell/System

Discussion in 'Miscellaneous Tutorials' started by IcemanBo, Jan 1, 2017.

  1. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,113
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    How To Import A Spell/System




    Introduction

    For properly using a system you always have to ensure to have all required data imported.

    If it's a triggered submission, it's obviously required that there is some code to be imported.
    Though, the submission may also require a custom unit, custom ability, buff, upgrade, or what ever.

    Fortunately, our resources on hive are forced specificaly to explain what code or resource is needed for the submission to work.
    So always keep in mind to read the resource description, and then you should do fine with finding out all it's requirements. (If a resource is not confirm with it, feel free to contact Staff.)

    Import GUI

    To properly import a GUI trigger from one map to another you need to enable following setting in World Editor:

    File -> Preferences -> General -> Automatically create unknown variables while pasting trigger data
    ^ensure this option is ticked before you import any code to your map.

    When done, you may right click on the wanted trigger or folder, copy it, and simply paste it into your map.
    You have now imported the code, and all required variables were automatically created.

    Import JASS

    You simply can copy and paste the whole JASS trigger, or folder, if you have the map opened.
    Sometimes though, there's no demo map provided (in JASS section). Then you need to import the JASS code into a new trigger.
    It's fairly simple, and works like this:
    1. Create a new trigger.
    2. Select the trigger.
    3. Go to "Edit" (next to "Data" in top bar) -> select "Convert to Custom Text".
    Now you have your trigger in the JASS format. Plain texts can be written here.
    Simply remove all text that appeared after you converted the trigger to custom text,
    and then Copy / Paste the new JASS as text into the empty sheet.

    Object Data / Others

    It happened more than once already that people imported the code, but completly forgot to import about a dummy unit, or what ever.
    So it's always good to go through the object editor, import manager, possibly sound editor, and just ensure you import everything resource related.
     
    Last edited: Oct 28, 2017
  2. Daffa the Mage

    Daffa the Mage

    Map Moderator

    Joined:
    Jan 30, 2013
    Messages:
    7,578
    Resources:
    27
    Packs:
    1
    Maps:
    8
    Spells:
    16
    Tutorials:
    2
    Resources:
    27
    Yay! Now I don't have to write the same thing all over again! :p

    The jass one can also be done in GUI style btw (copy-paste), just a heads-up.
     
  3. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,113
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    Hm? I think it's mentioned that it can be copy pasted. : )
     
  4. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,427
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    Approved. Sorry for the delay! Going to link to this whenever I can.