| 02-27-2004, 10:43 PM | #76 |
oops... lol, ya forgot about the Frequently in frequently asked questions :bangH: ok, so ill go make a thread :D |
| 02-28-2004, 01:00 AM | #77 | |
Quote:
Edit by Pitzer: DKSlayer didn't mean to ask questions in this thread but asking questins in general so he could update the FAQ with those questions and their answers... |
| 02-28-2004, 04:29 PM | #78 |
ok, so now i have a question that may really be frequantly asked (even tho it doesnt need to be ://// ) you know how sometimes like after trigger names and stuff you put () like for Trig_Trolls_spawn_conditions0001001 if your using it like in an "or" function you would do Trig_Trolls_spawn_conditions0001001() how do you know when to do that? i mean it seems almost completely random to me. but my guess would have to be after constants and like triggers and stuff. but they dont have it after region names://// so where do you put them? |
| 02-28-2004, 11:31 PM | #79 |
You use () whenever you call a function. The arguments the function takes come between the brackets. SOME EXAMPLES function A takes nothing returns nothing bla bla call A() function B takes player P returns nothing bla bla call B(Player(0)) NOTE: Player is also a function that takes the player number as argument so be have another nested bracket function C takes boolean B returns integer bla bla set MyInteger = C(true) function D takes nothing returns boolean bla bla if D() then bla bla |
| 02-28-2004, 11:58 PM | #80 |
hmm, so those really stand for like, full big argument brackets, just with nothing in them. well, I still see them after other things also.. I think, but i guess now if i think like "could this ever require anything?" i should be able to figure it out |
| 02-29-2004, 12:34 AM | #81 |
well, you can use brackets also to specify priorities in calculations Examples: set MyReal = (a + b) / 2 if MyBoolean or (MyBoolean2 and not MyBoolean3) then which would be pretty much the same as if (((((MyBoolean == true) or ((MyBoolean 2) and (MyBoolean3 == false)))))) then the WE often generates some pretty useless additional brackets in condition functions |
| 03-22-2004, 04:19 PM | #82 |
pls help me: i am newbie in making AI script, my Hero Learn skill on level up(AI) doesn't work, follow the link is I posted script: http://www.wc3campaigns.com/showthread.php?t=51701 |
| 07-10-2004, 11:25 AM | #83 |
They are insane, thats why - OR, they have a good memory and have programming knowledge. When you think of it, do you know the name of every WC3 TFT Meele unit? I do, and i admit they are quite a bunch, not to mention all the unit names in starcraft, and all the skill names in Diablo II. And so on, well, sum sumarum; They aren't that strange. Just a bit. |
| 08-03-2004, 08:11 PM | #84 |
Here's a quick question : Is it possible to do a Case Structure in JASS? |
| 08-21-2004, 08:53 PM | #85 |
Help, How would i go about getting the ability code for the ability trigger and how would I allow it to use the ability code, like what do I type to make the unit use it. |
| 08-25-2004, 02:11 PM | #86 |
i downloaded this jass based spell but i dont understand it is there any quick, easy and basic tutorials for n00bs at jass |
| 08-25-2004, 02:15 PM | #87 |
plz some1 help |
| 08-25-2004, 02:54 PM | #88 |
| 08-25-2004, 04:47 PM | #89 |
thx zalamander |
| 12-10-2004, 12:41 AM | #90 |
Plz, do me a favor all of u (if possible): when u're going to post a code - yours or not - try to make comments, explain the function, whatever u can do to make it easier for begginners =D Thnx. Oh, and btw, I've been trying to learn JASS for... half an hour now, but it's pretty much like Java or C++, so I guess I won't have problems with the structure itself... I just need to get all these functions hehe... whatever.... ...I understand the language, but I see it "lost in the space". How would I make a trigger to write "Hello World" when a hero stepped into a region? (If someone will be kind enough to reply it, be kind enough to place small comments and/or bigger explanations, as u prefer ;) ). Thankx again ![]() |
