1. The long-awaited results for Concept Art Contest #11 have finally been released!
    Dismiss Notice
  2. Join Texturing Contest #30 now in a legendary battle of mythological creatures!
    Dismiss Notice
  3. The Aftermath has been revealed for the 19th Terraining Contest! Be sure to check out the Results and see what came out of it.
    Dismiss Notice
  4. Hivers united and created a bunch of 2v2 melee maps. Vote for the best in our Melee Mapping Contest #4 - Poll!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice

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,054
    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,517
    Resources:
    26
    Packs:
    1
    Maps:
    8
    Spells:
    16
    Tutorials:
    1
    Resources:
    26
    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,054
    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,419
    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.