Help With My Two Spells Please

TieBreak

New Member
Reaction score
0
I'm trying to make a healing spell. What it basically does is that it creates a ward at the target point, a ward which i have given healing wave. Afterwards I want the ward to periodically use healing wave in an area around it. Unfortunatly I can't seem to figure this out.

Trigger:
  • Enchanted Ward Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Enchanted Ward
    • Actions
      • Set L = (Position of (Triggering unit))
      • Unit - Create 1 Enchanted Ward for (Owner of (Triggering unit)) at (Target point of ability being cast) facing Default building facing degrees
      • Set EnchantedWard = (Last created unit)
      • Unit Group - Add (Last created unit) to EnchantedWardGroup2
      • Unit - Add a 60.00 second Generic expiration timer to (Last created unit)



Here I have attempted to create the ward on the target point which worked perfectly. I don't know if adding the ward to EnchantedWardGroup2 (a unit-group variable) works though.


Trigger:
  • Enchanted Ward Activate
    • Events
      • Time - Every 7.00 seconds of game time
    • Conditions
    • Actions
      • Set L_Copy = (Position of (Last created unit))
      • Set EnchantedWardGroup = (Units within 700.00 of (Position of EnchantedWard) matching (((Matching unit) belongs to an enemy of (Owner of (Matching unit))) Equal to True))
      • Unit Group - Pick every unit in EnchantedWardGroup2 and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Orc Shadow Hunter - Healing Wave (Random unit from EnchantedWardGroup)



Here I tryed to make the ward cast healing wave periodically on allied units but it won't work :(

______

My second trigger is an auto-cast spell. It creates serpent wards when activated and it works. I was just wondering how you create the wards at the place where my hero is attacking.

Trigger:
  • Serpentine Ward Activate
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Serpentine Ward
    • Actions
      • Set Ablitylevel = (Level of Serpentine Ward for (Triggering unit))
      • Set L = (Position of (Triggering unit))
      • Unit - Create 1 DummyUnit for (Owner of (Triggering unit)) at L facing (Facing of (Triggering unit)) degrees
      • Unit - Add Serpentine Ward to (Last created unit)
      • Unit - Set level of Serpentine Ward for (Last created unit) to Ablitylevel
      • Unit - Order (Last created unit) to Orc Shadow Hunter - Serpent Ward L
 

malfy

New Member
Reaction score
4
wow well your enchanted ward activate trigger looks like nonsense; its hard to clean up its so weird.... i would do more like this:

Trigger:
  • Trigger - Enchanted Ward Activate
    • Events
      • Time - Every 7.00 seconds of game time
    • Conditions
      • ((EnchantedWard) is alive) Equal to True
    • Actions
      • Set EnchantedWardGroup = (Units within 700.00 of (Position of EnchantedWard) matching (((Matching unit) belongs to an ally of (Owner of (EnchantedWard))) Equal to True))
      • Unit - Order (EnchantedWard) to Orc Shadow Hunter - Healing Wave (Random unit from EnchantedWardGroup)


whats the purpose of the variable 'L_copy'?
why are you matching the enemy units when you want to heal allied?
your code is really confusing to me im sorry
 

Scorpions

New Member
Reaction score
12
In the first spell change to this:

Trigger:
  • Enchanted Ward Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Enchanted Ward
    • Actions
      • Set L = (Position of (Triggering unit))
      • Unit - Create 1 Enchanted Ward for (Owner of (Triggering unit)) at (Target point of ability being cast) facing Default building facing degrees
      • Set EnchantedWard = (Last created unit)
      • Unit Group - Add (Last created unit) to EnchantedWardGroup2
      • Unit - Add a 60.00 second Generic expiration timer to EnchantedWard

Trigger:
  • Enchanted Ward Activate
    • Events
      • Time - Every 7.00 seconds of game time
      • Conditions
      • Actions
        • Set L_Copy = (Position of (Last created unit))
        • Set EnchantedWardGroup = (Units within 700.00 of (Position of EnchantedWard) matching (((Matching unit) belongs to an enemy of (Owner of (Matching unit))) Equal to True))
        • Unit Group - Pick every unit in EnchantedWardGroup2 and do (Actions)
          • Loop - Actions
            • Unit - Set life for (Picked Unit) to Life of (Picked Unit) + HealAmount
            • Special Effect - Create a special effect attached to the overhead of (Picked unit) using YourChoise


HealAmount is the cantity of HP regenerated
YourChoise is the direction of the Special Effect to attach.
Note: I made the Special effect for a best interpretation, if not you'll never see when the hp is healed.


In the second:

Trigger:
  • Serpentine Ward Activate
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Serpentine Ward
    • Actions
      • Set Ablitylevel = (Level of Serpentine Ward for (Casting Unit))
      • Set L = (Position of (Casting Unit))
      • Unit - Create 1 DummyUnit for (Owner of (Triggering unit)) at L facing (Facing of (Triggering unit)) degrees
      • Unit - Add Serpentine Ward to (Last created unit)
      • Unit - Set level of Serpentine Ward for (Last created unit) to Ablitylevel
      • ""Unit - Order (Last created unit) to Orc Shadow Hunter - Serpent Ward L""


The Action amoung quotes, works?


Hope you help and agree to malfy
your code is really confusing to me im sorry
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top