| 08-12-2004, 11:21 PM | #1 |
I need a trigger that will allow me to fully select a unit after I've casted an ability. For example, say a Tauren Chieftan uses "Warstomp", I want the player to deselect the Tauren Chieftan and AUTOMATICALLY select a war mill. I've tried to do this, and the war mill gets selected, but I can't upgrade or do anything with it! It's just selected and... that's it! Help me out so that I can select a unit with triggers and then allow the player to do stuff with the selected unit. |
| 08-13-2004, 12:30 AM | #2 |
Uhm i cant see it as well could u post it with more detail?? -U want select 1 unit every 1 unit cast spell and make selected unit do something right??here i dont see +Selected unit was own by u or by another player??? +If u want it do some thing like up grade then go to action-order unit train/upgrade....... -Uhm i dont remember selected unit has event respond or not if not u must use variable to make it do what u want |
| 08-13-2004, 02:51 AM | #3 |
Ok, I'll try to explain in more detail... I have a barracks that has a spellbook menu. The spellbook menu opens up to a "dummy spell". When I use the dummy spell I want to deselect the currently selected unit and select another unit (owned by the same person). That other unit has upgrades that can be purchased. However, when the unit is selected using my trigger, I can't perform any upgrade actions (they don't show). Here's the trigger... Events -A unit Begins casting an ability Conditions -(Unit-type of (Triggering unit)) Equal to BUILDING1 Actions -If (All Conditions are True) then do (Then Actions) else do (Else Actions) --If - Conditions ---(Ability being cast) Equal to ABILITY --Then - Actions ---Selection - Clear selection for (Owner of (Triggering unit)) ---Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit) of type (BUILDING2)) and do (Actions) --Loop - Actions ---Selection - Select (Picked unit) for (Owner of (Triggering unit)) --Else - Actions ---Do nothing |
| 08-13-2004, 03:26 AM | #4 |
Is it possible you forgot to give the building the spell book ability? Or maybe the building was paused using an earlier trigger of some sort. If that's the case, then you must unpause it first. That's all I can come up with. |
| 08-13-2004, 07:21 AM | #5 |
I got it now u want your building auto up grade when u cast a spell in spell book right?U can try this Event:A unit begin casting an ability Condition:Ability being cast equal to [ability] and unit type of triggering unit equal to [unit type] Action: +Diselect triggering unit for [player] +Pick every unit of type own by triggering unit do multiaction -Select pick unit for [player] -Order pick unit do train/up grade to........ |
| 08-13-2004, 07:32 AM | #6 |
No, he just wants the building to be selected and then let the player choose what he wants to do with it. All I can think of is similar to what has been mentioned before: the other building may be paused, may not have the upgrade, or the upgrade maybe could be disabled under player properties... |
| 08-13-2004, 04:59 PM | #7 |
If neither of the things I said earlier work, make sure the ability also has an icon that you can click to use it, otherwise, it won't show up either. |
| 08-13-2004, 09:28 PM | #8 |
My problem is (and remains) that I select the other unit, but it doesn't show any upgrades. When I deselect the unit and reselect it (manually), the upgrades show again. If you don't know what I'm talking about, create a test map really quick and try it. If you actually makes something that works for you, please lemme know. |
| 08-14-2004, 02:28 AM | #9 |
Well, I asked you whether or not the unit is Paused or possibly doesn't have the ability at all. Check. |
| 08-14-2004, 04:46 AM | #10 |
I have this same problem too. you can do stuff with the unit but you have to select something else then select it again. the triggered selection i guess selects it as an allie. |
| 08-16-2004, 09:42 PM | #11 |
For those who were wondering... no. the unit was not paused. And.. bummer. I guess I can't use the o-so-wonderful system I was planning on using. Grrrr... |
| 02-13-2005, 01:02 AM | #12 |
Guest | ah. to much information! ahhh! my brains exploding!! |
| 02-13-2005, 01:39 AM | #13 |
There's a quirk with the selection trigger... there is a workaround somewhere. |
