Item Help

Justice

New Member
Reaction score
5
how can i detect the owner of this item and how can i make this trigger working only target taking damage ?

Trigger:
  • Orb of Fire
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (((Attacking unit) has an item of type Orb of Fire) Equal to True) or ((((Attacking unit) has an item of type Firehand Gauntlets) Equal to True) or (((Attacking unit) has an item of type Orb of Flames |r|cff8b00ffUnique|r|n) Equal to True))
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to 20
        • Then - Actions
          • Unit - Create 1 Dummy Unit JFA for (Owner of (Attacking unit)) at (Position of (Attacked unit)) facing Default building facing degrees
          • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
          • Unit - Add Orb of Fire to (Last created unit)
          • Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
          • Do nothing
 

perkeyone

something clever
Reaction score
71
im not sure what you mean by
how can i detect the owner of this item
but i think you might need to use
"event response - hero manipulating item"

i also dont understand what you mean by
how can i make this trigger working only target taking damage
but i think you might be in need of damage detection triggers
i just made these a min ago for someone else so ill just paste them here and hopefully it is what you needed.
Trigger:
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Unit Group - Add (Picked unit) to damage_group
          • Trigger - Add to Damage Detect <gen> the event (Unit - (Picked unit) Takes damage)

Trigger:
  • Damage Group
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • ((Entering unit) is in damage_group) Equal to False
    • Actions
      • Unit Group - Add (Entering unit) to damage_group
      • Trigger - Add to Damage Detect <gen> the event (Unit - (Picked unit) Takes damage)
Trigger:
  • Damage Detect
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (((damage source) has an item of type Orb of Fire) Equal to True) or ((((damage source) has an item of type Firehand Gauntlets) Equal to True) or (((damage source) has an item of type Orb of Flames |r|cff8b00ffUnique|r|n) Equal to True))
          • (Random integer number between 1 and 100) Less than or equal to 20
        • Then - Actions
          • Unit - Create 1 Dummy Unit JFA for (Owner of (damage source)) at (Position of (damage source)) facing Default building facing degrees
          • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
          • Unit - Add Orb of Fire to (Last created unit)
          • Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions


btw sorry if this is totally not what you are asking for, im just not sure if i understand you correctly
 

perkeyone

something clever
Reaction score
71
ok, also beware of leaks i might have left behind,
i dont think there are any, but im sleepy so who knows
 

Justice

New Member
Reaction score
5
i created this but this don't work

Untitled Trigger 004
Trigger:
  • Events
    • Map initialization
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Unit Group - Add (Picked unit) to DamageGroup
          • Trigger - Add to Orb of Fire <gen> the event (Unit - (Picked unit) Takes damage)


Trigger:
  • Untitled Trigger 004 Copy
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
      • ((Entering unit) is in DamageGroup) Equal to False
    • Actions
      • Unit Group - Add (Entering unit) to DamageGroup
      • Trigger - Add to Orb of Fire <gen> the event (Unit - (Picked unit) Takes damage)




Trigger:
  • Orb of Fire
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (((Damage source) has an item of type Orb of Fire) Equal to True) or ((((Damage source) has an item of type Firehand Gauntlets) Equal to True) or (((Damage source) has an item of type Orb of Flames |r|cff8b00ffUnique|r|n) Equal to True))
          • (Random integer number between 1 and 100) Less than or equal to 20
        • Then - Actions
          • Unit - Create 1 Dummy Unit JFA for (Owner of (Damage source)) at (Position of (Damage source)) facing Default building facing degrees
          • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
          • Unit - Add Orb of Fire to (Last created unit)
          • Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
          • Do nothing
 
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