Hello, today I want to tell you something about of "How you import vJass Spells". Well, I will use a example of my spellpack to show you whats important. Step 1.)
Check if you got the latest "JassGenNewPack". If not download it there: Link
Step 2.)
At first set up your editor right. For example turn on the "JassHelper" and turn off the "WE Syntax Checker". Like in this pictures.
Step 3.)
Did you set up all correctly? Well ok now we are ready to import the spell Boomerang from my spellpack. If you dont have the Spellpack you can download
it there: Link
Now we copy all stuff from the spell. In my spellpack there is also import list. The import list of the Boomerang looks like this:
Quote
-Boomerang:
> Spell ("Ability Editor")
> Dummy Missile ("Unit Editor")
> dummy.mdx
> Mainscript
> Spellscript
> JassGenNewPack 5a or later
So we now at first copy the script of the spell and the mainscript. If you dont know where the spellscript or mainscript is look there:
Edit: After some updates you also have to import the storage trigger. There are 2 storage systems you can choose.
After we imported all the script, we import the spell from the ability editor and the dummy from the unit editor.
Also we should import the dummy.mdx from the import editor.
Step 4.)
We imported all and you really guess its done? Well not really. Because we have to check if all Object IDs fit. So look if the ability id in the script is the same
like the id of the ability.
If all fit the spell is completly imported.
Extra Hints:
If you get errors like "Function redeclared: <functionname>" then you got two functions with the same name so you should
remove one. For example if there's the error "Function redeclared: H2I" the function "H2I" is in the script two times. So remove
the one H2I function and you will see no more errors.
Some of the spells in my spellpack got "Buffspells" that means the dummy for example cast buff stuff at enemy units. So that
means its also needed for the spell. So I just can give you the hint to copy all with the name of the spell you want in the ability
editor and import it in your map.
Whatever a spell of my spellpack is used. Import the mainscript.
And for all who don't understood this tutorial I have made a video tutorial, here you got:
The new version of the import tutorial. Enjoy...
If you want more quality download the movie there:
Mirror
Hope this will help all those guys who dont understand how to import a vJass spell.
Made by Hanky.
P.S.: Happy birthday Waradius.