Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Im sort of stuck, I get all the way up to the select unit group part but im unsure of the best way to deal damage to enemy players.
Its a thunderclap type of spell.
Picking units means you pick every unit in a unit group after each other, so you make the effect on the one by one... It's nearly the same as For Loop Integer A
Set VanGrd_Temploc = (Position of (Triggering unit))
Set VanGrd_Group = (Units within 300.00 of VanGrd_Temploc matching (((Picked unit) belongs to an enemy of Player 11 (Dark Green)) Equal to True))
Unit Group - Pick every unit in (Units within 300.00 of VanGrd_Temploc) and do (Actions)
Loop - Actions
Unit - Cause (Triggering unit) to damage (Picked unit), dealing (6.00 x (Real((Strength of VanGrd_Caster (Include bonuses))))) damage of attack type Normal and damage type Normal
Unit Group - Remove all units from (Last created unit group)
Thats what I've got, not to good at this but whatever lol
Your triggers leaks location, leaks group and conditions for group creating are wrong. (Units within 300.00 of VanGrd_Temploc matching (((Picked unit) belongs to an enemy of Player 11 (Dark Green)) Equal to True))
If you see 'matching' (matching condition) you have to use 'Matching unit' reference. Picked unit refers only to actions that 'pick' units.
Man, why you set a group, and use action Pick all units in group - without selecting group you have just created? You don't need to set group anyways, since I see you remove picked units instantly so its only temporary group.
Try this:
Vanguards Smash
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Vanguard's Smash
Actions
Set VanGrd_Caster = (Triggering unit)
Set VanGrd_Temploc = (Position of (Triggering unit))
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within 300.00 of VanGrd_Temploc matching (((Matching unit) belongs to an enemy of Player 11 (Dark Green)) Equal to True)) and do (Actions)
Loop - Actions
Unit - Cause VanGrD_Caster to damage (Picked unit), dealing (6.00 x (Real((Strength of VanGrd_Caster (Include bonuses))))) damage of attack type Normal and damage type Normal
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.