gjcraig
New Member
- Reaction score
- 2
I want to combine Black Arrow and Multi-shot "from Barrage" into a "Black Arrow Multi-shot". How do I do this ?
Well Black arrow and multishot does not stack, so you need to trigger.
Whenever your Hero attack a unit, check if there is another enemy unit nearby, then create a dummy unit, give it Black Arrow and order dummy to cast it.
You can use a loop if your multishot has, for example hits 5 targets. Then, pick a random unit near the attacked unit and add it in a group so that it wont be picked again. Loop 4 times, and at the end of the trigger destroy the group to reset it.
Cheerio
Well Black arrow and multishot does not stack, so you need to trigger.
Whenever your Hero attack a unit, check if there is another enemy unit nearby, then create a dummy unit, give it Black Arrow and order dummy to cast it.
You can use a loop if your multishot has, for example hits 5 targets. Then, pick a random unit near the attacked unit and add it in a group so that it wont be picked again. Loop 4 times, and at the end of the trigger destroy the group to reset it.
Cheerio
But the dummy's damage and the hero's damage will be different.
You could set the dummy to have 1 damage and then order it to do damage equal to the Hero's damage -1 to the unit after it shoots the arrow.
Maybe it would be easier to just add the spawning trigger to the multi-shot instead ?
Barrage deals different damage too.
Good idea. Add a normal multishot to your hero (but rename it) and add this trigger:
Trigger:
- Black Arrows Multi
- Events
- Unit - A unit Dies
- Conditions
- (Level of Black Arrow Multishot for (Killing unit)) Not equal to 0
- Actions
- Unit - Create (Level of Black Arrow Multishot for (Killing unit)) Dark Minion for (Owner of (Killing unit)) at TempPoint facing Default building facing degrees
But that's just an example, you can change the numbers or if you really want to use the method with dummies, tell me.
Barrage deals different damage too.
Good idea. Add a normal multishot to your hero (but rename it) and add this trigger:
Trigger:
- Black Arrows Multi
- Events
- Unit - A unit Dies
- Conditions
- (Level of Black Arrow Multishot for (Killing unit)) Not equal to 0
- Actions
- Unit - Create (Level of Black Arrow Multishot for (Killing unit)) Dark Minion for (Owner of (Killing unit)) at TempPoint facing Default building facing degrees
But that's just an example, you can change the numbers or if you really want to use the method with dummies, tell me.
TempPoint is a location variable. You can set variables by pressing CTRL + B in the trigger editor. I think the trigger is supposed to be something like this.
Trigger:
- Events
- Unit - A unit Dies
- Conditions
- (Level of Black Arrow Multishot for (Killing unit)) Not equal to 0
- Actions
- Set TempPoint = (Position of (Killing unit))
- Unit - Create (Level of Black Arrow Multishot for (Killing unit)) Dark Minion for (Owner of (Killing unit)) at TempPoint facing Default building facing degrees
- Custom script: call RemoveLocation(udg_TempPoint)
First, make sure the hero have the barrage spell and its working properly.
Then create a spell from immolation and named it "Black Arrows"
Then create a new buff and replace the immolation buff
The buff called "Black Arrow" is actually a buff that can be seen on the hero (the caster) when the hero start to cast the immolation
Then create this trigger
Trigger:
- Black Arrows Multi
- Events
- Unit - A unit Dies
- Conditions
- (Level of Black Arrow for (Killing unit)) Greater than 0
- ((Killing unit) has buff Black Arrow) Equal to true
- Actions
- Unit - Create 1 Peasant for Player 1 (Red) at (Position of Triggering unit)) facing Default building facing degrees
Here the example, sooner or later i will remove this attachment
View attachment 32326