# Help with this trigger

Status
Not open for further replies.

#### Oromish

Level 3
Hello.
i'm making a Passive skill called "Blessing of siren" which gives 2/4/6 % chance when struck by enemy unit to silence nearby enemies (10/20/30% in beta mode) .
Problem is that i'm not very good at making triggers, yet.

this is what i've made sofar, and i can see a few errors, but i don't know how else to do.

• Blessing of Siren
• Events
• Unit - A unit Is attacked
• Conditions
• (Ability being cast) Equal to Blessing of Siren
• Actions
• Set SirenB_integer = (Random integer number between 1 and 100)
• Set SirenB_Unit = (Attacked unit)
• Set SirenB_Loc = (Position of SirenB_Unit)
• If ((Level of Blessing of Siren for SirenB_Unit) Equal to 1) then do (Set loops = 1) else do (Do nothing)
• If ((Level of Blessing of Siren for SirenB_Unit) Equal to 2) then do (Set loops = 2) else do (Do nothing)
• If ((Level of Blessing of Siren for SirenB_Unit) Equal to 3) then do (Set loops = 3) else do (Do nothing)
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• SirenB_integer Less than or equal to 10
• Then - Actions
• Unit - Create 1 Blessing of Siren dummy for (Owner of SirenB_Unit) at SirenB_Loc facing Default building facing degrees
• Unit - Order (Last created unit) to Neutral Dark Ranger - Silence SirenB_Loc
• Else - Actions

i would really appreciate some help with this mess...

#### Anachron

Level 23
Event : A unit is being attacked
Condition: Ability being cast equal to xx

loL? Its quite simple, you need to use "A unit is using an ability" as event.
So if you attack an unit its not an ability what you use lol.

#### Oromish

Level 3
well, the ability is a passive ability so i can't use "ability being cast", and as i said, i'm not sure how to make this work.

#### Oromish

Level 3
hmm, wha?
can you show me in triggers how you mean?
and how would that link this trigger with the Unit that got the Passive ability?

#### Anachron

Level 23
• Blessing of Siren
• Events
• Unit - A unit Is attacked
• Conditions
• (Ability being cast) Equal to Blessing of Siren - < Remove this
• Level of Blessing of Siren of (attacked/attacking - Whose unit has the ability) unit) not equal to 0 <- add this.. it will work 100%ly!
• Actions
• Set SirenB_integer = (Random integer number between 1 and 100)
• Set SirenB_Unit = (Attacked unit)
• Set SirenB_Loc = (Position of SirenB_Unit)
• If ((Level of Blessing of Siren for SirenB_Unit) Equal to 1) then do (Set loops = 1) else do (Do nothing)
• If ((Level of Blessing of Siren for SirenB_Unit) Equal to 2) then do (Set loops = 2) else do (Do nothing)
• If ((Level of Blessing of Siren for SirenB_Unit) Equal to 3) then do (Set loops = 3) else do (Do nothing)
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• SirenB_integer Less than or equal to 10
• Then - Actions
• Unit - Create 1 Blessing of Siren dummy for (Owner of SirenB_Unit) at SirenB_Loc facing Default building facing degrees
• Unit - Order (Last created unit) to Neutral Dark Ranger - Silence SirenB_Loc
• Else - Actions

#### Oromish

Level 3
woo, it worked excellent.
Thanks a lot.

#### Rui

Level 41
You're going off-topic. The problem is solved, so I'll close the thread.

~Off-Topic posts deleted & Thread Closed

Status
Not open for further replies.

Replies
5
Views
699
Replies
6
Views
618
Replies
3
Views
663
Replies
6
Views
522
Replies
8
Views
611