|
|||||||
| First Aid: Map Making Help Your trigger doesn't work? You need an idea for your heroes ultimate? Post here to get help with any kinds of smaller problems. We will try to help as fast as possible. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Great Bearded One
Clan Member [Grunt]
Join Date: Feb 2008
Posts: 1,853
![]() |
why isnt it working...
i dont understand. i havent mapped for a long time. but im sure that nothing has changed so drastically as basic spell triggers dont work. i have a trigger which is "a unit finished casting an ability" then the condition checks if its the right ability, then part of the trigger gives the targeted ability a custom value via the 'target unit of ability being cast' the rest of the trigger works. but this part doesnt. is there a reason???? this used to always work for me.... edit: added the trigger: Code:
Building Switch Gang 2
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Take Control (Custom)
Actions
For each (Integer A) from 1 to 8, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Casting unit)) is in PlayerGroupArray_Gangs[(Integer A)]) Equal to True
Then - Actions
Unit Group - Add (Target unit of ability being cast) to UnitGroupArray_BuildingsByGang[(Integer A)]
Unit - Set the custom value of (Target unit of ability being cast) to (Integer A)
Game - Display to (Player group((Owner of (Casting unit)))) the text: |cff00ff00Success:|...
Else - Actions
Do nothing
|
|
|
|
|
|
#2 | ||||||||||||
|
One hilarious guy
Clan Member [Grunt]
Join Date: Dec 2006
Location: Sweden
Posts: 1,400
![]() ![]() |
fionished casting can be a bad event, but ill look moar later
__________________
|
||||||||||||
|
|
|
|
|
#3 |
|
ツ
Clan Member [Grunt]
Join Date: May 2009
Posts: 155
![]() |
Use 'Starts The Effect of an Ability' event instead.
|
|
|
|
|
|
#4 |
|
Great Bearded One
Clan Member [Grunt]
Join Date: Feb 2008
Posts: 1,853
![]() |
oh, right. this works. thanks.
i remember now that some spells work with finished, but the one i was using needs starts effect. thanks man. +rep |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|