| 10-03-2003, 01:39 PM | #1 |
hi i need to know how to make my custom script to work, its a ".j" file, ive imported it into my map but it wont execute it ...... |
| 10-03-2003, 01:42 PM | #2 |
Just go call FunctionName( arg1, arg2 .... ) |
| 10-03-2003, 02:04 PM | #3 |
k... cant get it to work... my file name is: ADMINMOD.1.2..j how would u execute that ?? tell me exact plz |
| 10-03-2003, 04:15 PM | #4 |
this "j" file is my adminmod... and it contains a bunch of triggers... so i want to know how to get this script to work... so when i press ESC the Admin mod pumps up... got any answers for that ? plz... im almost done at my map and i need this single action to complete it :S |
| 10-03-2003, 04:53 PM | #5 |
put everying in blizzard.j into your admin J file, rename the admin J file to blizzard.j, import into your map. |
| 10-03-2003, 05:39 PM | #6 |
well i imported the blizzard.j file into my admin mod map.. and then i made a new script i called Blizzard.j but it wont do the actions i want it to... how do i get it to work in my map ? |
| 10-03-2003, 06:26 PM | #7 |
Simply make a new Custom Text Trigger and Copy + Paste everything into it. |
| 10-03-2003, 08:57 PM | #8 |
u cant be serious... that would make it just as easy to copy/paste the whole admin mod map into my other map... i just need to know the path for execute the script... somthing about function(udg_my_var) that what the WE says... i think ill go to the jass forum.. maybe they can help me more there.. |
| 10-04-2003, 08:01 AM | #9 |
try ExecuteFunction("myfunctionname()") I have never tried using ExecuteFunction before, but it's worth a try. |
| 10-04-2003, 10:02 AM | #10 |
you can't have another script file in your map besides your war3map.j and maybe a modified blizzard.j if you know how to do that. First possibilitie: Paste all your functions from your script file to the map header (click onto the map name in the trigger editor). Then you can call these functions from any trigger you like Second possibility: Open your map with WinMPQ extract the war3map.j paste in your own script somewhere at the top right after the globals section. Then add the lines to the script where you want to call your custom funcs and reimport the modfied j-file into the map. You should also delete the (attributes) file from the map, otherwise it will say the map script is corrupt when opening the map in WE again. Anyway you shouldn't open it in WE afterwards as your whole custom script will be deleted from the map script and you'll have to do the whole process again. |
| 10-04-2003, 04:14 PM | #11 |
thx for all the good response for my topic... but it sounds to be a bit hard to get my admin mod to work through a script.... so maybe i have to copy+paste every darn trigger into my map.... or do u got a better idea ?= |
| 10-04-2003, 05:17 PM | #12 |
Well, if you can start them all with only one call just paste your whole script into the map header and call it. |
| 10-04-2003, 06:31 PM | #13 |
sounds good, but can u give me an exact tutorial how to do that... i dont understand what u mean by header... i use the import manager.. and then what ? |
| 10-04-2003, 07:40 PM | #14 |
Open the trigger-editor. On the left, in the mini-explorer close all triggers, close all categories, and there will be only one object left with a field to enter JASS-text. |
