trigger that uses item target area [trigger help needed]

Cdo

New Member
Reaction score
5
Hi, i've been working on an item so that when you pick it up it will increase the damage you deal when you use any of three other items.
the item is based of the Danger Close perk from C.O.D.
basically when you pick up the item it sets a variable to true, all i really need is to work out how to cause the triggering unit to deal 10 damage in a area of 500 or so around the TARGET AREA WHERE THE ITEM IS CAST ON.
(the item uses a spell eg.Stormbolt)

Trigger:
  • Danger Close 2
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Item being manipulated)) Equal to Fragmentation Grende
          • (Item-type of (Item being manipulated)) Equal to RPGx2
          • (Item-type of (Item being manipulated)) Equal to Flamethrower
    • Actions
      • Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 500.00 at (Center of (Playable map area)), dealing 100.00 damage of attack type Spells and damage type Normal


I just want to replace "Centre of (Playable map area)" with the location where the items is cast upon, but i have no idea how to do it.. anyone know?
Any help would be much appriciated, thanks for you time :)
 

NindoOne

TH.net Regular
Reaction score
17
With leak removal:
Trigger:
  • Item
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to (==) Potion of Healing
    • Actions
      • Set Point_Variable = (Position of (Hero manipulating item))
      • Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 500.00 at Point_Variable, dealing 100.00 damage of attack type Spells and damage type Normal
      • Custom script: call RemoveLocation (udg_Point_Variable)
 

crazyfanatic

New Member
Reaction score
20
I think you can just use Starts the effect of an ability event, check if the ability is the right one and trigger it as a normal skill.
 
General chit-chat
Help Users

      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