world23wc3
Member
- Reaction score
- 6
EDIT: Sorry, title is wrong. The correct title should have been "Need help with trigger "Event and Condition".
I've made a new custom ability(ctrl + shit + n). I picked "Charge gold and Lumber" and changed it a little bit.
Name: "Blasting Strike"
Cost: 100 gold
Mana cost: 100 mana(doesn't seem to work, any ideas why?)
The ability is used from a building, it works.
Problem
Now I want a trigger to be activated when the spell "Blastign Strike" is used but it doesn't work. I will show you the code of the trigger.
Do you have any ideas why it didn't work?
Money is charged every time I use the ability, but the trigger doesn't get activated.
Thanks for help!
I've made a new custom ability(ctrl + shit + n). I picked "Charge gold and Lumber" and changed it a little bit.
Name: "Blasting Strike"
Cost: 100 gold
Mana cost: 100 mana(doesn't seem to work, any ideas why?)
The ability is used from a building, it works.
Problem
Now I want a trigger to be activated when the spell "Blastign Strike" is used but it doesn't work. I will show you the code of the trigger.
Trigger:
- Blasting Strike force 1
- Events
- Unit - A unit Finishes casting an ability
- Conditions
- (Ability being cast) Equal to Blasting Strike (c)
- Actions
- Game - Display to (All players) the text: Force 1 has used th...
- Unit Group - Pick every unit in force2HeroGroup and do (Actions)
- Loop - Actions
- Unit - Move (Picked unit) instantly to (Center of Ability Blasting Strike force 2 teleport destination <gen>), facing 0.00 degrees
- Loop - Actions
- Unit Group - Pick every unit in (Units owned by Player 10 (Light Blue) matching ((Unit-type of (Matching unit)) Equal to Raider)) and do (Actions)
- Loop - Actions
- Unit - Kill (Picked unit)
- Loop - Actions
- Events
Do you have any ideas why it didn't work?
Money is charged every time I use the ability, but the trigger doesn't get activated.
Thanks for help!