• 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.

Special effects "permanently"

Status
Not open for further replies.
Level 7
Joined
May 30, 2018
Messages
290
Hey hey guys,

I made following trigger

  • AbilityAnimations
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Ignited Ammunition
    • Actions
      • Unit Group - Pick every unit in (Units of type Mortar Team) and do (Special Effect - Create a special effect attached to the weapon of (Picked unit) using Abilities\Spells\Human\FlameStrike\FlameStrikeDamageTarget.mdl)
The problem is the special effect only gets attached to models, that are already trained (are present in the game) but future units of that type that get produced don't have this effect attached. How can I make it so units that will be trained in the future also get this special effect attached.
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
You could detect when that unit type finishes training then add the special effect to it. Now as for the upgrade, I am not sure if it's possible to detect if an upgrade is already researched but you could use a boolean to check if the upgrade is complete then do what I said above. Here's an example :

A unit Finishes research

Researched tech-type Equal to Ignited Ammunition

Set VariableSet UpgradeDone = True

--------------------

A unit Finishes training

Unit-type of (Trained unit) Equal to "SomeUnit"
UpgradeDone Equal to True

Add Special effect to trained unit...
 
Level 7
Joined
May 30, 2018
Messages
290
You could detect when that unit type finishes training then add the special effect to it. Now as for the upgrade, I am not sure if it's possible to detect if an upgrade is already researched but you could use a boolean to check if the upgrade is complete then do what I said above. Here's an example :

A unit Finishes research

Researched tech-type Equal to Ignited Ammunition

Set VariableSet UpgradeDone = True

--------------------

A unit Finishes training

Unit-type of (Trained unit) Equal to "SomeUnit"
UpgradeDone Equal to True

Add Special effect to trained unit...


Thanks, works perfectly :)!
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
This way also leaks effects and they can persist after death. There is a much easier way. The ability ‘sphere’ that the Bloodmage has just attached a special effect to a specific attachment point of a unit. Make a copy of this ability that bestows the effect you want and give it the techtree requirement of the upgrade. Give this ability to the mortar teams and it should automatically be activated when the upgrade is researched.
 
Status
Not open for further replies.
Top