The Link to the War3map.j is
http://www.zshare.net/download/war3map-j.html
Hi I'm new to the forum, this is actually my first thread/post. Sure deprotecting map is what this forum is about. But I'm rather more fascinated on how to actually "read" JASS. And from what I can tell this Section is suppose to be for "learning purposes" but most of the registered members here are just here to request a map to be deprotected.
Anyway, I hope this section will be helping me towards my knowledge on JASS.
I learned the basic of JASS by myself, having program language of C# and ASM it's not completely "pants wetting" experience when reading JASS code.
But, there are things which I have no idea on.
Now I'm not those kind of people who like to "invent", I work with ASM so I'm more interested in "reverse engineering", here is just codes examples I got base out of a map I'm currently looking in.
Code:
call TriggerRegisterPlayerChatEvent(gg_trg_cheat,Player(1),"-pwned",true)
call TriggerAddCondition(gg_trg_cheat,Condition(function Trig_cheat_Conditions))
call TriggerAddAction(gg_trg_cheat,function Trig_cheat_Actions)
What I'm guessing is:
When Player 1 say "-pwned" in chat (without quotation). The game will create a condition at "Trig_cheat_Conditions" and an action at "Trig_cheat_Actions"
and it will proceed in doing whatever it's suppose to do. If I'm not right then correct me from here.
Now assuming that's right.
My question will be:
What's going on here
Code:
call TriggerRegisterPlayerChatEvent(gg_trg_Secret,Player(1),"-",false)
call TriggerAddCondition(gg_trg_Secret,Condition(function Trig_Secret_Conditions))
call TriggerAddAction(gg_trg_Secret,function Trig_Secret_Actions)
What does it mean by if player say "-" = "false"? Logically it's shown to be a double negative.
If player say "-" and it's false...Which means the player didn't say anything. And the rest of the code is a waste...I've been trying to understand that for quite a while, and many questions will follow once I get this one out of the way.
Thanks, awaiting instructions.