My Pandemonium Spell

rodge_002

New Member
Reaction score
4
I got this skill where, when the character casts it (Its instant), the enemies around him will be pushed back. I was attempting to do it, but it won't work. Can you show me how would you do it?
 

Firezy

New Member
Reaction score
14
Spell based off ThunderClap

if you don't want it to do what my dmg is just remove that part in the first trigger

Trigger:
  • Repulsion
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Repulsion
    • Actions
      • Set unitgroup_repulsion = (Units within 315.00 of (Position of (Triggering unit)) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) is alive) Equal to True))))
      • Set unit_repulsion = (Triggering unit)
      • Set point_repulsion = (Position of unit_repulsion)
      • Unit Group - Pick every unit in unitgroup_repulsion and do (Actions)
        • Loop - Actions
          • Unit - Cause (Triggering unit) to damage (Picked unit), dealing ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 6.00) damage of attack type Chaos and damage type Universal
          • Unit Group - Add (Picked unit) to unitgroup_repulsion1
      • Trigger - Turn on Repulsion Movement <gen>
      • Wait 1.50 seconds
      • Trigger - Turn off Repulsion Movement <gen>
      • Custom script: call DestroyGroup (udg_unitgroup_repulsion)
      • Custom script: call RemoveLocation (udg_point_repulsion)

Trigger:
  • Repulsion Movement
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in unitgroup_repulsion1 and do (Actions)
        • Loop - Actions
          • Set point_repulsion1 = (Position of (Picked unit))
          • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\CarrionSwarm\CarrionSwarmDamage.mdl
          • Special Effect - Destroy (Last created special effect)
          • Unit - Move (Picked unit) instantly to (point_repulsion offset by ((Distance between point_repulsion and point_repulsion1) + 10.00) towards (Angle from point_repulsion to point_repulsion1) degrees)
          • Custom script: call RemoveLocation (udg_point_repulsion1)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top