Zalinian
New Member
- Reaction score
- 0
I'm trying to use jass to make some trigger based spells. I need to use local variables so that they can be multi-instanced. However, a local can only be used in a single function, and my spells span over several functions. Is there a way to make variables local to a set of functions? Is this how library/scopes work? I'm using custom text on the trigger, so I have the addtrigger, and triggerconditions functions and such.
If someone could give a small explanation of how this all fits in and possibly a small or semi-complex example (I learn best from dissecting others' code) I would greatly appreciate it.
If someone could give a small explanation of how this all fits in and possibly a small or semi-complex example (I learn best from dissecting others' code) I would greatly appreciate it.