- Joined
- Sep 9, 2007
- Messages
- 253
I've read that comparing GUI to JASS is bad idea but I think in my case I can't stop myself. When learning these JASS concepts all I can think of is "how does that relate to what I already know in GUI triggers". I think what I need is a tutorial which teaches JASS from the perspective of an advanced GUI user.
I've spent the last 2 days looking at beginner/introductory JASS tutorials and I've learned a few things but there is no way I could implement anything and I still have no broad understanding. This is frustrating because I know that once I do gain that understanding I will learn extremely quickly.
Well all I'm doing is whinging so I guess I should ask some constructive questions...
How Should I organise my code within the GUI trigger interface?
Is it normal to have a list of GUI triggers which have all been converted to code and edited into efficient JASS?
Should I have one trigger at the start which declares all my global variables?
I'm sure people are always posting with these kinds of questions but I have been unable to find answers. Thanks so much for any advice anyone can offer.
I've spent the last 2 days looking at beginner/introductory JASS tutorials and I've learned a few things but there is no way I could implement anything and I still have no broad understanding. This is frustrating because I know that once I do gain that understanding I will learn extremely quickly.
Well all I'm doing is whinging so I guess I should ask some constructive questions...
How Should I organise my code within the GUI trigger interface?
Is it normal to have a list of GUI triggers which have all been converted to code and edited into efficient JASS?
Should I have one trigger at the start which declares all my global variables?
JASS:
call FlushHandleLocals(DamageTrigger)
call DestroyTrigger(DamageTrigger)
call SetHandleHandle(AttackingUnit, "DamageTrig", null)
//Why is the second line purple and the other lines black? What is the difference?
JASS:
call TriggerAddCondition(AttackTrigger, Condition( function AttackTrigger_Conditions))
//Why is there a space after the open bracket?