Hi, Im new with JASS and currently learning it
I have a problem where I don't know how to pass a variable data from one trigger to another trigger
I learn JASS by converting from GUI.
Here is the idea:
The caster cast Aerial Shackles.
Trigger1 will execute and then its calling the Trigger2
Then I try to make the Trigger2 to takes unit caster from the Trigger1.
I believe this can be done using JASS since JASS has function parameter but I don't know how (already try but failed).
I have a problem where I don't know how to pass a variable data from one trigger to another trigger
I learn JASS by converting from GUI.
Here is the idea:
Trigger:
- Trigger1
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Aerial Shackles
- Actions
- Unit - Make (Triggering unit) Invulnerable
- Trigger - Run Trigger2 <gen> (ignoring conditions)
- Events
Trigger:
- Trigger2
- Events
- Conditions
- Actions
- Wait 5.00 seconds
- Unit - Make (Triggering unit) Invulnerable
The caster cast Aerial Shackles.
Trigger1 will execute and then its calling the Trigger2
Then I try to make the Trigger2 to takes unit caster from the Trigger1.
I believe this can be done using JASS since JASS has function parameter but I don't know how (already try but failed).