• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Dumb question about vJass...

Status
Not open for further replies.
Level 11
Joined
Oct 11, 2012
Messages
711
Hey guys. How to turn on a trigger or another struct in a struct? I only know the "onInit" method, which can only initialize a trigger or a struct at the map initialization.
An example for my quesiton:
There is only one struct A that reduces the damage taken by Hero A. I would like to initialize or to "trigger" this struct A when Hero A learns ability A000. How to achieve that? Thanks a lot.
 
Level 11
Joined
Oct 11, 2012
Messages
711
that will do nothing however, because the trigger has no actions/conditions attached
also you can inline the declaration of local variable with setting its value
local trigger t = CreateTrigger()

I assumed he knew that, since he knows jass already. But you're point is good too.

As chobibo said, I do know that. :) Thanks for the reply anyway.
 
Status
Not open for further replies.
Top