• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Trigger] help with incinerate efect

Status
Not open for further replies.
Level 2
Joined
Nov 25, 2021
Messages
3
can someone help me to do that:

the area damage of the incinerate detonation is a percentage of the intelligence of the hero who applied the spell

I've tried it on my own but I'm not very good at programming that :goblin_cry:

I did things like this::

  • Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 300.00 at (Position of (Target unit of ability being cast)), dealing (1.00 x (Real ((Intelligence of (Triggering unit) (Include bonuses)) ))) damage of attack type Magic and damage type Fire

  • Nameless Trigger 013
    • Events
      • Unit - A unit Die
    • Terms
      • ((Triggering unit) has buff Spontaneous Combustion) Equal to True
    • Actions
      • Unit Group - Pick every unit in (Units within 200.00 of (Position of (Triggering unit))) and do (Actions)
        • Loop: Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Yes: Conditions
              • ((Picked unit) belongs to an ally of (Triggering player)) Equal to False
            • Then: Actions
              • Unit Group - Remove (Picked unit) from (Last created unit group)
            • Others: Actions
              • Unit - Cause Aurolette 0140 <gen> to damage (Picked unit), dealing (0.15 x (Percentage life of (Triggering unit))) damage of attack type Magic and damage type Fire

But I can't make it work and I don't know where I'm making mistakes.

Help me! :goblin_boom:
and sorry if my english is very bad
 

Uncle

Warcraft Moderator
Level 58
Joined
Aug 10, 2018
Messages
5,849
When units die their buffs are removed, so unfortunately you can't use that Condition here.

EDIT
Hopefully this can help you: Confused with a spell

Also, I attached a map I made that has a Stacking Attack Damage ability. It's similar to Incinerate but not exactly what you need.
Maybe it can help you get started.
 

Attachments

  • Stacking Attack Damage U1.w3x
    66 KB · Views: 12
Last edited:
Level 1
Joined
Nov 29, 2021
Messages
1
Since buff disappear when a unit dies, but appartenance to a unit group doesn't, I would 1) create a unit group (unit_group_buff) to include the units when they get the buff/are targeted by ability 2) check every second if units in unit_group_buff have the buff, otherwise remove them 3) change the condition of your trigger to "unit belongs to unit_group_buff"
 
Status
Not open for further replies.
Top