| 07-30-2006, 10:28 PM | #1 |
I have a Merchant who sells an item called Healing services. When you purchase this, i want him to cast healing spray at the given target. I cannot get this to work. I've also tryed just getting the unti to play the special effect animation at the target when you purchase, but that dosent work either. Can anyone help? |
| 07-30-2006, 11:21 PM | #2 |
what about showing up the trigger you are currently using. Cause it *should* work maybe there is a mistake in code |
| 07-30-2006, 11:36 PM | #3 |
Im not sure how to post the actual trigger so heres what i have. Events Animation - Play Troll Witch Doctor 0005 <gen>'s (Name of Healing Spray) animation Conditons (Item-type of (Sold Item)) Equal to Healing Services Actions Animation - Play Troll Witch Doctor 0005 <gen>'s (Name of Healing Spray) animation This is waht i have for the selling of the item and just cast teh animation of the spell |
| 07-30-2006, 11:46 PM | #4 |
To put it into a trigger looking box, type: Trigger Box:
[trigger]This is my Trigger code[/trigger] Trigger: This is my Trigger codeYour trigger (as copied) Trigger: I see your event is actually a action, i will fix that and show you a working action. Trigger: BTW: Above your first Event, is your triggers name, right click that and click "Copy as Text", then that will be the guidline to the trigger box on Wc3c, so then you can just paste it inbetween Code:
[trigger]Paste Here[/trigger] |
| 07-30-2006, 11:51 PM | #5 | |
Quote:
Anyways, if thats your event, heres the trigger: |
| 07-31-2006, 12:01 AM | #6 |
Sorry i saw it, heres the actual trigger Trigger: and all that trigger you gave me does is make the buying unit use the item being purchased. I want the Unit selling the item (My troll witch doctor) to cast healing spray, or just the healing spray animation at the buying unit. |
| 07-31-2006, 12:05 AM | #7 |
By 'Healing Services', and your last thread, i thought you wanted the item to be used when it is purchased. Healing spray is a AoE ability. Firstly the shop must have the Healing Spray ability. If it does, you can use this trigger: Trigger: Auto Healing Spray
If the shop dosent have the ability, add it, like in this trigger: Trigger: Auto Healing Spray
BTW: You need a variable called "Temp_Location", and the variable type is "Point". |
| 07-31-2006, 12:24 AM | #8 |
And if you don't know what is that "Temp_Location" for, it's to prevent memory leaks... |
| 07-31-2006, 12:26 AM | #9 | |
Quote:
Yeah =). |
| 07-31-2006, 12:36 AM | #10 |
Alright i got it to work, but now i have two questions 1) When you add teh ability Healing wave, the spell is now usable by the unit next to the Merchant, so they can use the spell without buying the Item. How do i fix this? 2) Can you set it so custom spells are useable when you buy the item, or just preset skills in the game? Trigger: Purchase Healing
this is my trigger |
