| 03-25-2007, 06:15 PM | #1 |
I don't understand how to import spells. I read the tutorials but they are confusing. Whenever i paste custom scripts it always says theres an error. Whenever i copy and paste a spell it doesn't work. Do i have to copy and paste EVERYTHING just for 1 spell to work? It's all so confusing. |
| 03-25-2007, 06:35 PM | #2 |
Well, usually it gives instructions in the triggers. But here's a quick overview from what I tihnk I know. Script in the Custom Script Section goes into your, custom script section. I recommend at the bottom. The triggers specified get copied into triggers of the same name into your map. If it's JASS, make sure you convert your triggers to custom script, then copy/paste. Copy (or re-make, i don't know if you can copy variablews from map to map) each variable. Adjust anything that might be needed for adjustment. (Such as the creation of a spell, the spell's ID, the dummy caster, whatever.) Basically, there should be a checklist in the post of the spell, or the spell-map itself. Also, check for any requrements of the spell (custom WE's, systems, models, etc.) But all this is assuming you're downloading them from the site. If you mean [i]your[i] spells from your maps, then you need to literally recreate the spells. (As in, make the spell you used for the original in the object editor, then change the triggers as needed for the new spell (unit ID's, spell ID's, etc.)) and create any variables. You should get the point by now. |
| 03-25-2007, 11:21 PM | #3 |
I still don't understand. That's what the tutorials told me. When i paste triggers and scripts then i save a window pops up saying that theres en error. What am i supposed to do then? Ignore it and keep pasting spells and the triggers? |
| 03-25-2007, 11:23 PM | #4 |
Every spell has got specific steps to implement. Don't expect a tutorial to cover them all |
| 03-26-2007, 12:29 AM | #5 |
well, go through the script and look for the integers that represent the spell and change them to the orderID of the spell you used that casts it (aka the dummy spell). It'd also be helpful if you'd tell us what kind of errors it's giving you (only post the first error it shows, as usually the first error spawns most of the rest. Once you fix the first, just repeat till theres no errors) |
| 03-26-2007, 02:02 AM | #6 |
what does the error say exactly? and when does it come up? Does it come up right after you press paiste or does it come up when you try to test the map or what? |
| 03-27-2007, 03:23 AM | #7 |
Basically what happens is when i try to save or test. An error pops up saying triggers are incorrect or something. In the trigger editor i notice that many triggers are inactive and seem to be clear as if missing some required value or field. I copied all triggers and custom abilities from a map so i figure i have to make the triggers active again. Some of them are pretty easy to change while others require values that i can't seem to find in the editor. |
| 03-27-2007, 03:35 AM | #8 |
Ok. Three things: One, are you using Vexorian's Jass New Gen Pack (vJass)? Two: Have you created any necessary variables for the spells? Three: Does the spell require Vexorian's Caster System and do you have it? (it does require the first mentioned item, vJass). Really make sure you go over the requirements for each spell with a fine-toothed comb, because one thing means a whole world of difference. |
| 03-27-2007, 03:46 AM | #9 |
Make sure you copy the map header and fill in the correct rawcodes. |
| 03-27-2007, 03:49 AM | #10 |
Sometimes a trigger's variables will copy over incorrectly. For instance, I copied over a trigger (GUI) from a test map that I had made which used an array variable for some units. However, it imported itself as a regular unit variable; though the lines of the trigger appeared as though it were an array. To fix it, I clicked on each line where the array was referenced and re-input the variable, etc. That may help you; you should at least check, at any rate. |
