Xebarsis
New Member
- Reaction score
- 7
I apologize if I'm lacking clarity or explaining this in a confusing way, but here it goes. I'm making a spell called Molotov Cocktail; it's based on Silence. I'm basing it on silence because I want it to show the radius that the spell will be impacting. The simple description is I want it to show a missile coming to the targeted position, then once the missile contacts the position all units within a certain range will be hit by shadow strike.
This gets complicated because I don't want the units to be instantly shadow striked, I want it to happen when the missile lands on the spot. So to demonstrate the missile I created a dummy unit on the caster and on the targeted point. Then I order the first dummy unit to cast shadow strike on the second unit, which then runs another trigger to check for the shadow strike buff. If it detects the unit has the shadow strike buff, the trigger then removes the buff and creates a dummy caster for every unit in range and shadow strikes them.
Here are the problems I am encountering. When the receiving dummy caster is hit by the first shadow strike, the buff doesn't apply because the caster is invulnerable. I'm not sure how to get the buff to display at the time when the missile reaches the point.
Secondly, even if I make the dummy caster vulnerable, it only shadow strikes one unit in range when it should be shadow striking all the units in range. Here are my two triggers:
Again, sorry that this is so confusing. Let me know if you have any questions.
This gets complicated because I don't want the units to be instantly shadow striked, I want it to happen when the missile lands on the spot. So to demonstrate the missile I created a dummy unit on the caster and on the targeted point. Then I order the first dummy unit to cast shadow strike on the second unit, which then runs another trigger to check for the shadow strike buff. If it detects the unit has the shadow strike buff, the trigger then removes the buff and creates a dummy caster for every unit in range and shadow strikes them.
Here are the problems I am encountering. When the receiving dummy caster is hit by the first shadow strike, the buff doesn't apply because the caster is invulnerable. I'm not sure how to get the buff to display at the time when the missile reaches the point.
Secondly, even if I make the dummy caster vulnerable, it only shadow strikes one unit in range when it should be shadow striking all the units in range. Here are my two triggers:
Code:
Molotov Cocktail
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Molotov Cocktail (Item)
Actions
Game - Display to (All players) the text: Moo
Set ThePoint = (Target point of ability being cast)
Set TheOtherPoint = (Position of (Triggering unit))
Unit - Create 1 Dummy Killer for (Owner of (Triggering unit)) at ThePoint facing Default building facing degrees
Set Drunkard = (Last created unit)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at TheOtherPoint facing Default building facing degrees
Set Bartender = (Last created unit)
Unit - Add Molotov Cocktail (Graphic) to (Last created unit)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit - Order Bartender to Night Elf Warden - Shadow Strike Drunkard
Custom script: call RemoveLocation (udg_ThePoint)
Custom script: call RemoveLocation (udg_TheOtherPoint)
Code:
MC Receiver
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Set MolotovGroup = (Units in (Entire map) matching (((Matching unit) has buff Molotov Cocktail Starter ) Equal to True))
Unit Group - Pick every unit in MolotovGroup and do (Actions)
Loop - Actions
Game - Display to (All players) the text: SOMEONE SHOULD BE B...
Unit - Remove Molotov Cocktail Starter buff from (Picked unit)
Set TheOtherPoint = (Position of (Picked unit))
Set MolotovVictims = (Units within 512.00 of TheOtherPoint)
Unit Group - Pick every unit in MolotovVictims and do (Actions)
Loop - Actions
Unit - Create 1 Dummy Caster for Neutral Extra at TheOtherPoint facing Default building facing degrees
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit - Add Molotov Cocktail to (Last created unit)
Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Picked unit)
Custom script: call RemoveLocation (udg_TheOtherPoint)
Custom script: call DestroyGroup (udg_MolotovGroup)
Custom script: call DestroyGroup (udg_MolotovVictims)
Again, sorry that this is so confusing. Let me know if you have any questions.