| 09-11-2002, 12:51 PM | #1 |
Guest | I have a question about hero's ability. I want to limit an action that only happenes to a hero when he clicks specific ability. I have tried to write a trigger about this, but it didn't work. I don't know where is the problem. Here is my trigger. Event - Game - The Heroes Abilities is Click Condition- (Learned Heroes Skilled) Equal to (Skills) (Unit Type of (Triggering Unit) is equal to (Unit) Action - any action Where is the problem?? plz tell me , thank you. |
| 09-11-2002, 01:51 PM | #2 |
You mean when you click on an ability to learn it or to use it? If its when you use it, do this: Event: <Unit> issues an order without a target Condition: Order = <name of ability> Actions: ... |
| 09-12-2002, 12:52 PM | #3 |
Guest | thanks zzZZ this is what i want. i 'll try this later. |
| 09-12-2002, 06:36 PM | #4 |
Guest | This will only work for abilities that have no target. Ones like Blizzard, Shockwave, heal, death coil etc all have targets. |
| 09-12-2002, 07:15 PM | #5 |
not true drunk. i am currently using it with starfall |
| 09-12-2002, 08:13 PM | #6 |
Guest | IANANE, but IMHO Starfall doesn't have a target |
| 09-12-2002, 08:37 PM | #7 |
oops misread his post, thought he said "abilities that have a target" instead of "abilities that have no target |
| 09-12-2002, 08:38 PM | #8 |
actually to use one with a target, replace issues an order with no target, by issues an order targeting a point/unit |
| 09-23-2002, 04:01 PM | #9 |
ooo... i was looking for a thread tat talks about this... don mind if i ask a question... i currently wanna do a mass teleport that teleports all allies within a specific range to the targetted destination... i have a trigger like this that doesnt seem to work... event - issues order with a point condition - if learned skill = mass teleport action - blah bla blah... i couldnt use the order = mass teleport cos there isnt any presets and i don know the exact string for mass teleport can anyone help?? |
| 09-23-2002, 04:55 PM | #10 |
You can extract HumanAbilityStrings.txt and look at the "Order=" field for Mass Teleport to get the order... if there is none (some abilities dont have any), you can add one and inject it in your map. (Adding one hasnt been tested and may not work tho.) |
| 09-23-2002, 08:16 PM | #11 |
hmmmz... i managed 2 figure it out... how i get the string is by triggering... i do a display for a unit user-specific event and actions a display of string(issued order) + other text... :) however, i wasnt able to get any result with item abilities... tat is, if i hav a trigger tat does the same thing as wat i've stated above and changed the event to 'order with no target' for testing out item animate dead... it doesnt display the order string, it only shows me the other text which i've added to observed if the trigger works... any idea on tis?? btw, i managed to teleport all allies within range of the unit casting mass teleport... however, i found out tat tis doesnt work properly if you use it on 'order on target'... a real mass teleport would hav to work on both 'target' and 'point'... if ya got any ideas on tis, do help! :) |
| 09-23-2002, 08:52 PM | #12 |
i don't think item abilities have order strings |
| 09-23-2002, 08:59 PM | #13 |
well then, is there a way to check for it? say if i wanna do a check to see if a player clicks on a particular item ability button, such as item summon skeletons? cos the odd thing is when a player clicks an item ability such as item summon skeletons, it triggers the event 'order with no target'... so basically, it is an order of some sort... i wonder how the program differentiates them... hmmmmz... |
| 09-23-2002, 09:15 PM | #14 |
why not just check if player uses an item of type....? |
| 09-23-2002, 09:30 PM | #15 |
nope... clicking on the item ability button wont trigger a item used event... it triggers a 'order with no target' event... damn... it has to be a mistake those blizzard dudes have made... they probably didnt tink of it... gosh... |
