Clan CBS

Go Back   Clan CBS Forums > Warcraft Modding Support > First Aid: Map Making Help

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.

Reply
 
Thread Tools Display Modes
Old 01-22-2010, 04:24 PM   #1
KamiFlashedDODO
Great Bearded One
Clan Member [Grunt]
 
KamiFlashedDODO's Avatar
 
Join Date: Feb 2008
Posts: 1,853
KamiFlashedDODO is coco
Default target unit of ability being cast

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
__________________


-=JUST SO YOU ALL KNOW: IM IN THE ARMY=-

Everyone should get Xfire. and add me. (kamiflasheddodo)
KamiFlashedDODO is offline   Reply With Quote
Old 01-22-2010, 06:58 PM   #2
Zakamutt
One hilarious guy
Clan Member [Grunt]
 
Zakamutt's Avatar
 
Join Date: Dec 2006
Location: Sweden
Posts: 1,400
Zakamutt is a black spot on a cows hiveZakamutt is a black spot on a cows hive
Default

fionished casting can be a bad event, but ill look moar later
__________________
A SPOTIFY PLAYLIST.
ProjectDescriptionStatus
Ninja TacticsFFA 3ps inspired by Archery Tactics with custom spells I am currently overworked but may improve this later / map is "Final-ish"
DuelistHero battles, arena style; solo or team. Skillbased gameplay with few things "Click-to-damage".Alpha. Concept 40-60%, Terrain 10%, Triggers like 5%. frozen-ish.
Caduan's TaleSingle-player linear RPGFrozen; story playable but only amounts to around 5 mins
Zakamutt is offline   Reply With Quote
Old 01-22-2010, 07:02 PM   #3
DiamondBlade
Clan Member [Grunt]
 
Join Date: May 2009
Posts: 155
DiamondBlade is warm milk
Default

Use 'Starts The Effect of an Ability' event instead.
DiamondBlade is offline   Reply With Quote
Old 01-22-2010, 08:10 PM   #4
KamiFlashedDODO
Great Bearded One
Clan Member [Grunt]
 
KamiFlashedDODO's Avatar
 
Join Date: Feb 2008
Posts: 1,853
KamiFlashedDODO is coco
Default

Quote:
Originally Posted by DiamondBlade View Post
Use 'Starts The Effect of an Ability' event instead.
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
__________________


-=JUST SO YOU ALL KNOW: IM IN THE ARMY=-

Everyone should get Xfire. and add me. (kamiflasheddodo)
KamiFlashedDODO is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:25 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Epicwar Hive Workshop War3 Workshop Wc3 Campaigns Elemental TD