• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Spell] How would I get started with an effect doubler (de)buff?

Status
Not open for further replies.
Level 3
Joined
Jun 3, 2013
Messages
39
Trying to make a spell buff where
Effects of buffs are doubled towards target unit
Effects of debuffs are also doubled towards target unit
Spell damage gets doubled towards target unit
Spells from target unit are twice as effective
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,537
It would require you to design the entire map around this system using custom triggered abilities.

The only exception is Spell damage as this can be done easily with a Damage Engine.

The system could work something like this:
  • Custom Storm Bolt
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Storm Bolt (This ability doesn't actually do anything besides fire the trigger)
    • Actions
      • Set VariableSet Damage = (100.00 x DamageMultiplier)
      • Set VariableSet BuffDuration = (2.00 x BuffDurationMultiplier)
      • -------- Run a custom missile system that attaches these values to the missile --------
When the missile hits the target this trigger would run:
  • Storm Bolt Hits Target
    • Events
    • Conditions
    • Actions
      • -------- Missile Hits Target --------
      • Unit - Create 1 Dummy for MissileOwner at (Position of MissileTarget) facing Default building facing degrees
      • Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
      • Unit - Add Storm Bolt to (Last created unit)
      • Ability - Set Ability: (Unit: (Last created unit)'s Ability with Ability Code: Storm Bolt)'s Real Level Field: Duration - Normal ('adur') of Level: 0 to BuffDuration
      • Ability - Set Ability: (Unit: (Last created unit)'s Ability with Ability Code: Storm Bolt)'s Real Level Field: Duration - Hero ('ahdu') of Level: 0 to BuffDuration
      • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt MissileTarget
      • Unit - Cause MissileSource to damage MissileTarget, dealing Damage damage of attack type Spells and damage type Normal
DamageMultiplier and BuffDurationMultiplier would be a stat that is tracked on each unit. Setting it to 2.00 would double the effects of your other variables. In my example it would double the effects of Damage and Buff Duration for the Storm Bolt ability.

You could also create variables like DamageReceivedMultiplier and BuffDurationReceivedMultiplier that would increase the effects that a unit receives.
 
Last edited:
Status
Not open for further replies.
Top