• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How To Import A Spell/System

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:
Top