| 10-08-2003, 09:20 PM | #46 |
Sometimes this trick is useful when working with customized Blizzard.j files: I use the function ExecuteFunc that takes the name of the function to be executed as a string. So for example if you have a function calles "SetupHeros" in your map and you want to call it call ExecuteFunc("SetupHeros") will not work. why? Because SetupHeros doesn't exist in Blizzard.j and therefore it won't compile. But if you replace "SetupHeros" by a Blizzard.j string global it will work, coz the syntax checker can't know if that string variable is a valid function name. so you declare the global string bj_FunctionToBeExecuted = "SetupHeros" and change the line to call ExecuteFunc(bj_FunctionToBeExecuted) Using this the map script and blizzard.j can actually interact! |
| 10-21-2003, 09:23 PM | #47 |
I have wrote another JASS FAQ with many examples where every JASS string is commented out. But there is one problem - this FAQ is Russuan! And I haven't translated it into English yet! Anybody needs another JASS FAQ there? |
| 10-21-2003, 10:10 PM | #48 |
There are not that many good FAQs that another one would be too much. So if it is good, translate it :) |
| 10-21-2003, 10:28 PM | #49 |
Ok, but translation will take a lot of time... If mapmakers need one more FAQ then I translate it! I can give you link to russian site where this FAQ is located - I think you don't know Russian but you will be able to estimate its volume and JASS examples... and then say needs Wc3Campaigns that FAQ or not. :) |
| 10-22-2003, 02:00 PM | #50 |
You are right, I don't know russian :) But if you give me the link, I'll have a look at it. |
| 10-22-2003, 06:02 PM | #51 |
http://forum.wc3.ru/war/showthread.php?s=&threadid=5554 You should register if you want to download attachments! |
| 10-22-2003, 06:11 PM | #52 |
Looks really good :) So it would be nice if you'd translate it or find someone to translate it. |
| 10-22-2003, 06:25 PM | #53 |
Thanks. I hope it will be demanded when I translate it. |
| 10-23-2003, 02:14 PM | #54 |
I think this would be a good idea to translate all of the articles/FAQ's that are in Russia. At least the good ones. |
| 10-23-2003, 02:21 PM | #55 |
Of course, that site contains a lot of useful information even for Wc3Campaigns! |
| 11-01-2003, 04:44 PM | #56 |
ok.. im a newbie to this... but ive done other programming languages and kind of understand it... but i know (I think lol) that if you want some trigger to be run on an event.. and you put it down here Code:
function InitTrig_Melee_Initialization takes nothing returns nothing
set gg_trg_Melee_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Melee_Initialization, function Trig_Melee_Initialization_Actions )
endfunction·thanks :D |
| 11-01-2003, 06:04 PM | #57 |
When you convert a trigger to custom text you get a different checkbox on the top. That checkbox determines if a trigger is run at map initialization. A trigger without events is not run automatically. It can only be run manually and when you check that checkbox it adds code to manually run the trigger at the beginning. |
| 11-01-2003, 06:52 PM | #58 |
oooooooooohhhhhhhhhhh! ok thanks a lot :D :ggani: |
| 11-02-2003, 03:49 PM | #59 |
ok... im just learning jass so your gonna see me here a lot.. wtf is wrong with this line Code:
set udg_items[4] = MultiboardGetItem ( udg_board, 1, 0 ) in the little checker it say invalid argument type(real) emote_confused really annoying i have like 4 other lnes just like this but with a different index on items and instead of the coordinates 1, 0, i have 0, 0 0,1 0,2 and 1 , 1 everthing but this one works emote_confused |
| 11-03-2003, 12:27 AM | #60 |
I can't see what is wrong with that. Maybe that is not the actual line WE complained about? Or you put a "." instead of a "," in the orginal code? |
