Help with a Passive Hex!

Da_HP_Geek

New Member
Reaction score
8
How to do a passive hex? I mean that that there is a 10/15/20 % chance that when a unit with this abillity attack annother unit, there is a chance that it transform into an animal for 1/2/3 seconds. Pllz make the trigger for me ;)
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
Event-> A unit is attacked
Condition-> attacked unit has passive
Action-> If random 1 to 100 is less or equal to 5+5*passive
create dummy
add hex to dummy
set hex ability on dummy same as passive on attacked unit
order dummy to cast hex to attacking unit.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Ability comparison and dont u want when the guy with the passive attacks not attacked
 

Da_HP_Geek

New Member
Reaction score
8
yes, but I haven't come so far in the trigger yet ;)

Edit: ops... I thought that when he wrote passive, there was a special funcition for passive spells... my bad
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
Ability comparison and dont u want when the guy with the passive attacks not attacked
Eh, no.

Trigger:
  • Level of Your Ability for (Attacking Unit)) Greater than 0

It's under Integer Comparison.
 

Nexor

...
Reaction score
74
use black arrows or orb of lightning and change the black arrows or orb of lightning (purge) ability to hex
 

ludnica

Long gone
Reaction score
61
You can set the level of your hexing ability whenever orb of lightning is learnt via triggers.
 

Da_HP_Geek

New Member
Reaction score
8
Yes, but the icon of the abillity is then the DIST version, so I prefer to do like kingkingyyk3 said...
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Here:
Trigger:
  • PassiveHex
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of PassiHex for (Attacked unit)) Greater than or equal to (>=) 1
      • (Random integer number between 1 and 100) Less than or equal to (<=) ((5 x (Level of PassiHex for (Attacked unit))) + 5)
    • Actions
      • Set tempPoint = (Position of (Attacking unit))
      • Unit - Create 1 Dummy for (Owner of (Attacked unit)) at tempPoint facing Default building facing (270.0) degrees
      • Unit - Add Dummy Hex to (Last created unit)
      • Unit - Set level of Dummy Hex for (Last created unit) to (Level of PassiHex for (Attacked unit))
      • Unit - Order (Last restored unit) to Orc Shadow Hunter - Hex (Attacking unit)
      • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation(udg_tempPoint)

Map attached:
 

Attachments

  • opt-Passive_Hex.w3x
    13.9 KB · Views: 95

Da_HP_Geek

New Member
Reaction score
8
Thx, but something is wrong, it dont work, even not in your test map, can you take a look at it again?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Trigger:
  • Unit - Order (Last restored unit) to Orc Shadow Hunter - Hex (Attacking unit)


It's supposed to be Last created unit :D
 

Sonic

New Member
Reaction score
10
no
Trigger:
  • order last created unit to hex attacking unit it is won't work

you need to set it to attacked unit
 

WolfieeifloW

WEHZ Helper
Reaction score
372
It needs to be "Last created unit" like Komaqtion said.
And Sonic, why would you want to Hex the person who got attacked :nuts: .
 

Sonic

New Member
Reaction score
10
I am not:nuts:
Attacking unit is the hero who get the passive
Attacked is person the hero attacked
I have a lot of passive spells in my map and they work perfectly the don't use (hex) on a hero!
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Attacking unit is the one who was attacking.
Attacked unit is the one who was attacked.

The attacked unit has the passive.
 

Sonic

New Member
Reaction score
10
I am not agree with you if you want to check the spell check it
My passive spells works perfectly
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
Attacking unit is the one who was attacking.
Attacked unit is the one who was attacked.

The attacked unit has the passive.

Not according to the maker of this thread.

How to do a passive hex? I mean that that there is a 10/15/20 % chance that when a unit with this abillity attack annother unit, there is a chance that it transform into an animal for 1/2/3 seconds. Pllz make the trigger for me ;)
 
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