• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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.
 
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.
Back
Top