Spell Not working?

NeuroToxin

New Member
Reaction score
46
I know its not MUI, but I do know the Siphon Life is, Ill post it anyways, the wisp wont move, and IDK why, kthanks

Trigger:
  • Create The Wisp
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) Wisp Drain
    • Actions
      • Set wispcaster = (Triggering unit)
      • Set cposition = (Position of wispcaster)
      • Set TargetUnitPosition = (Target point of ability being cast)
      • Set Movingtheunit = (Integer((Distance between TargetUnitPosition and TargetUnitPosition)))
      • Set MoveUnit = (Movingtheunit / 375)
      • Set OffsetAngle = (Integer((Angle from cposition to TargetUnitPosition)))
      • Set OffsetPoint = (cposition offset by 50.00 towards (Real(OffsetAngle)) degrees)
      • Unit - Create 1 dummy_unit for (Owner of wispcaster) at OffsetPoint facing (Real(OffsetAngle)) degrees
      • Set Dummy_Unit = (Last created unit)
      • Unit - Add a 15.00 second Generic expiration timer to Dummy_Unit
      • Countdown Timer - Start Timer as a One-shot timer that will expire in 15.00 seconds
      • Trigger - Turn on Move The Wisp <gen>
      • Trigger - Add to Unit Comes within <gen> the event (Unit - A unit comes within 135.00 of Dummy_Unit)

Trigger:
  • Unit Comes within
    • Events
    • Conditions
    • Actions
      • Unit - Order Dummy_Unit to Neutral Alchemist - Acid Bomb (Triggering unit)

Trigger:
  • Move The Wisp
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Set Dummy_Unit_Pos = (Position of Dummy_Unit)
      • Unit - Move Dummy_Unit instantly to (OffsetPoint offset by 0.60 towards (Real(OffsetAngle)) degrees)
      • Custom script: call RemoveLocation(udg_Dummy_Unit_Pos)

Trigger:
  • Stop all
    • Events
      • Time - Timer expires
    • Conditions
    • Actions
      • Trigger - Turn off Move The Wisp <gen>
      • Set wispcaster = No unit
      • Set Dummy_Unit = No unit
      • Set OffsetAngle = 0
      • Set Movingtheunit = 0
      • Set MoveUnit = 0
      • Custom script: call RemoveLocation(udg_Dummy_Unit_Pos)
      • Custom script: call RemoveLocation(udg_cposition)
      • Custom script: call RemoveLocation(udg_OffsetPoint)
      • Custom script: call RemoveLocation(udg_TargetUnitPosition)
 

NeuroToxin

New Member
Reaction score
46
Heres the Siphon life
Trigger:
  • Siphon Life
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) Siphon Life
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • CustomValue Greater than or equal to (>=) 1000
        • Then - Actions
          • Set CustomValue = 1
        • Else - Actions
          • Set CustomValue = (CustomValue + 1)
      • Set caster[CustomValue] = (Triggering unit)
      • Set targetunit[CustomValue] = (Target unit of ability being cast)
      • Set damage[CustomValue] = (Level of Siphon Life for caster[CustomValue])
      • Set manastolen[CustomValue] = (manastolen[CustomValue] x (Level of Siphon Life for caster[CustomValue]))
      • Unit - Cause caster[CustomValue] to damage targetunit[CustomValue], dealing (Real(damage[CustomValue])) damage of attack type Spells and damage type Normal
      • Unit - Set mana of targetunit[CustomValue] to ((Mana of targetunit[CustomValue]) - (Real(manastolen[CustomValue])))
      • Unit - Set life of caster[CustomValue] to ((Life of caster[CustomValue]) + (Real(damage[CustomValue])))
      • Unit - Set mana of caster[CustomValue] to ((Mana of caster[CustomValue]) + (Real(manastolen[CustomValue])))
      • Set caster[CustomValue] = No unit
      • Set targetunit[CustomValue] = No unit
      • Set targetunit[CustomValue] = No unit
 

Bankde

Member
Reaction score
20
Not sure what do you really want but here is for the first spell :

You've set this only once the spell is trigger.
Trigger:
  • Set OffsetPoint = (cposition offset by 50.00 towards (Real(OffsetAngle)) degrees)


Every 0.04s of game time, you've tried to move dummy unit to the same point so it won't move:
Trigger:
  • Unit - Move Dummy_Unit instantly to (OffsetPoint offset by 0.60 towards (Real(OffsetAngle)) degrees)


You've set new point:
Trigger:
  • Set Dummy_Unit_Pos = (Position of Dummy_Unit)


But you move the dummy unit to the old point (not the one you've set new):
Trigger:
  • Unit - Move Dummy_Unit instantly to (OffsetPoint offset by 0.60 towards (Real(OffsetAngle)) degrees)


Change "OffsetPoint" to "Dummy_Unit_Pos"
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top