Any part wrong?

Icy

New Member
Reaction score
3
Trigger:
  • Scope
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Optical Scope (X)
    • Actions
      • Unit Group - Add all units of (Units within 800.00 of (Target point of ability being cast) matching ((((Triggering unit) is A structure) Equal to False) and ((Owner of (Matching unit)) Equal to Player 12 (Brown)))) to scopeGrp
      • Unit - Create 1 Dummy for Player 2 (Blue) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
      • Unit - Add Scoped Buff (dummy) to (Last created unit)
      • Unit - Set level of Scoped Buff (dummy) for (Last restored unit) to (Level of Optical Scope (X) for (Last created unit))
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit Group - Pick every unit in scopeGrp and do (Actions)
        • Loop - Actions
          • Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Faerie Fire (Picked unit)
      • Unit Group - Remove all units from scopeGrp


I test the spell Scoped buff manually and it work on target with 0 cooldown and 0 mana cost.
But still it didn't work, the dummy was not created....
 

X-maul

AKA: Demtrod
Reaction score
201
Trigger:
  • Scope
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Optical Scope (X)
    • Actions
      • Unit Group - Add all units of (Units within 800.00 of (Target point of ability being cast) matching ((((Triggering unit) is A structure) Equal to False) and ((Owner of (Matching unit)) Equal to Player 12 (Brown)))) to scopeGrp
      • Unit - Create 1 Dummy for Player 2 (Blue) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
      • Unit - Add Scoped Buff (dummy) to (Last created unit)
      • Unit - Set level of Scoped Buff (dummy) for (Last restored unit) to (Level of Optical Scope (X) for (Last created unit))
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit Group - Pick every unit in scopeGrp and do (Actions)
        • Loop - Actions
          • Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Faerie Fire (Picked unit)
      • Unit Group - Remove all units from scopeGrp


I test the spell Scoped buff manually and it work on target with 0 cooldown and 0 mana cost.
But still it didn't work, the dummy was not created....
change the whole trigger to this
Code:
Untitled Trigger 001
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to [COLOR="Blue"][U]Optical Scope (X)[/U][/COLOR]
    Actions
        Set TempPoint = (Target point of ability being cast)
        Set TempUnitGroup = (Units within 800.00 of TempPoint matching (((Matching unit) is A structure) Equal to False))
        Custom script:   call RemoveLocation(udg_TempPoint)
        Unit Group - Pick every unit in TempUnitGroup and do (Actions)
            Loop - Actions
                Set TempPoint = (Position of (Picked unit))
                Unit - Create 1 [COLOR="Blue"][U]Dummy Unit[/U][/COLOR] for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
                Unit - Add [COLOR="Blue"][U]Scoped Buff (dummy)[/U][/COLOR] to (Last created unit)
                Unit - Set level of [COLOR="Blue"][U]Scoped Buff (dummy)[/U][/COLOR] for (Last created unit) to (Level of (Ability being cast) for (Triggering unit))
                Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Faerie Fire (Picked unit)
                Custom script:   call RemoveLocation(udg_TempPoint)
        Custom script:   call DestroyGroup(udg_TempUnitGroup)
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
@x-maul: you could do it with a single dummy unit and save alot of performance if you just change the casting time for the dummy unit to 0.00.
i dont exactly know how this data was called but it was something about the graphics. maybe "Graphic - Spell Backswing Point" or something?

however there are plenty of turtorials about this topic.
 

Sim

Forum Administrator
Staff member
Reaction score
534
Art - Animation - Cast Backswing
Art - Animation - Cast Point

Set both to 0
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top