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

Example Trigger for a DDS

Status
Not open for further replies.
Level 4
Joined
May 21, 2015
Messages
70
so basically I want some example for a DDS specifically Bribe's DDS because I don't freaking know where to start with triggered abilities, do I need to create the trigger spell? sorry I'm still new and first time to use DDS. anyway can you give me some idea how to do it?
 
Generally you take acces of the Event - DamagemodifiyerEvent =1/2/3/4 depends on how well you want to organize and then use the Variable the DDS offers you.

Further dealing damage inside the DamagemodyfierEvent is no good idea, it will need exceptions etc better use the After Damage-Event for that.

Sample trigger, Cursed units will take atleast 40 dmg from basic Attacks.

  • Curse
    • Events
      • Game - DamageModifierEvent becomes = 3.00
    • Bedingungen
    • Actions
      • -------- Checks if a unit takes non-Spelldamage and is cursed --------
      • -------- and is not healed/Blocking --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Bedingungen
          • IsDamageSpell = False
          • DamageEventType != DamageTypeHeal
          • DamageEventType != DamageTypeBlocked
          • (DamageEventTarget has buff Curse)
        • Then - Actions
          • -------- Increaes Dmg to 40 if below --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • DamageEventAmount < 40.00
            • Then - Actions
              • Set DamageEventAmount = 40.00
            • Else - Actions
        • Else - Actions

Some Passive - On hit - deal 30 Spell damage + Show Lightningstrike

  • On Hit Lighting
    • Events
      • Game - AfterDamageEvent becomes = 1.00
    • Bedingungen
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • IsDamageSpell = False
          • (Level of Sturmhammer for DamageEventSource) != 0
        • Then - Actions
          • Spezialeffekt - Create a special effect attached to the origin of DamageEventTarget using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
          • Spezialeffekt - Destroy (Last created special effect)
          • Unit - Cause DamageEventSource to damage DamageEventTarget, dealing 30.00 damage of attack type Spell and damage type Magic
        • Else - Actions

Recommended use by Bribe:
- Terminal Phase: Equal to 1.00. If your goal is to block damage or switch it to a heal, this is the best time. If you don't want the damage blocked any further, set DamageEventOverride to true. It will skip phases 2 and 3 and even skip phase 4 if the damage is equal to or less than 0.
- Abstract Phase: Equal to 2.00. If you don't need to know the damage event amount to modify the damage, do it here. Multiplication, division and logarithm calculations are ideal, here.
- Direct Phase: Equal to 3.00. Hardened skin reduces damage by 13 but not by less than 3. This phase is the perfect time to implement such a thing.
- Quantitative Shield (Final) Phase: Equal to 4.00. This is the most interesting one. I needed to create it in order to make an Anti-Magic Shell and Mana Shield respond to a modified DamageEventAmount instead of just the original.
[/Qoute]
 
Last edited:
Status
Not open for further replies.
Top