BishopXRay 1 Posted February 6, 2018 Share Posted February 6, 2018 Does the option AOE in Fight Class Editor literally mean AOE? I haven't found any examples yet where it is used. It wasn't even used for Whirling Blades in the examples I looked at. Is it possible to set abilities to trigger based on the number of attackers? How do we setup for multiple targets verses single target? Thank You Link to comment https://wrobot.eu/forums/topic/8531-single-and-multi-target-and-aoe/ Share on other sites More sharing options...
iMod 99 Posted February 6, 2018 Share Posted February 6, 2018 (edited) 6 hours ago, BishopXRay said: Does the option AOE in Fight Class Editor literally mean AOE? I haven't found any examples yet where it is used. It wasn't even used for Whirling Blades in the examples I looked at. Is it possible to set abilities to trigger based on the number of attackers? How do we setup for multiple targets verses single target? Thank You AOE means that the spell needs to be placed at the ground like Death and Decay from DK. If i'm not wrong there is no option in the editor to get the result you want. What you can do is to use C# code as condition. For example: int range = 15; int targetAmount = ObjectManager.GetObjectWoWUnit().Count(u => u.IsAlive && u.MaxHealth > 500 && ((ObjectManager.Me.TargetObject.Position.DistanceTo2D(u.Position) - ObjectManager.Me.TargetObject.CombatReach) <= range) && u.IsAttackable && !TraceLine.TraceLineGo(u.Position)); return targetAmount > 3; [range] = range around the target [targetAmount] = the targets we found around the target [targetAmount > 3] = returns true (executes the spell) if there are more than 3 targets around the current target hope that helps. Edited February 6, 2018 by iMod Link to comment https://wrobot.eu/forums/topic/8531-single-and-multi-target-and-aoe/#findComment-39026 Share on other sites More sharing options...
crunch112 0 Posted March 28, 2018 Share Posted March 28, 2018 On 6/2/2018 at 11:15 AM, iMod said: AOE means that the spell needs to be placed at the ground like Death and Decay from DK. If i'm not wrong there is no option in the editor to get the result you want. What you can do is to use C# code as condition. For example: int range = 15; int targetAmount = ObjectManager.GetObjectWoWUnit().Count(u => u.IsAlive && u.MaxHealth > 500 && ((ObjectManager.Me.TargetObject.Position.DistanceTo2D(u.Position) - ObjectManager.Me.TargetObject.CombatReach) <= range) && u.IsAttackable && !TraceLine.TraceLineGo(u.Position)); return targetAmount > 3; [range] = range around the target [targetAmount] = the targets we found around the target [targetAmount > 3] = returns true (executes the spell) if there are more than 3 targets around the current target hope that helps. So just Copy/paste the code under condition setting? Link to comment https://wrobot.eu/forums/topic/8531-single-and-multi-target-and-aoe/#findComment-41851 Share on other sites More sharing options...
iMod 99 Posted March 28, 2018 Share Posted March 28, 2018 I'm not sure if you can use multi lines. If not just use return ObjectManager.GetObjectWoWUnit().Count(u => u.IsAlive && u.MaxHealth > 500 && ((ObjectManager.Me.TargetObject.Position.DistanceTo2D(u.Position) - ObjectManager.Me.TargetObject.CombatReach) <= 15) && u.IsAttackable && !TraceLine.TraceLineGo(u.Position)) > 3; You need to select " Sharp Code" as condition and add the line into Value. Link to comment https://wrobot.eu/forums/topic/8531-single-and-multi-target-and-aoe/#findComment-41852 Share on other sites More sharing options...
Sjd6795 8 Posted May 27, 2023 Share Posted May 27, 2023 On 3/28/2018 at 5:58 AM, iMod said: I'm not sure if you can use multi lines. If not just use return ObjectManager.GetObjectWoWUnit().Count(u => u.IsAlive && u.MaxHealth > 500 && ((ObjectManager.Me.TargetObject.Position.DistanceTo2D(u.Position) - ObjectManager.Me.TargetObject.CombatReach) <= 15) && u.IsAttackable && !TraceLine.TraceLineGo(u.Position)) > 3; You need to select " Sharp Code" as condition and add the line into Value. This is just throwing an error CS1525 and CS1002 Invalid expression term ',' Link to comment https://wrobot.eu/forums/topic/8531-single-and-multi-target-and-aoe/#findComment-68288 Share on other sites More sharing options...
Droidz 2738 Posted May 27, 2023 Share Posted May 27, 2023 8 hours ago, Sjd6795 said: This is just throwing an error CS1525 and CS1002 Invalid expression term ',' Use code without "return" and the ";" ObjectManager.GetObjectWoWUnit().Count(u => u.IsAlive && u.MaxHealth > 500 && ((ObjectManager.Me.TargetObject.Position.DistanceTo2D(u.Position) - ObjectManager.Me.TargetObject.CombatReach) <= 15) && u.IsAttackable && !TraceLine.TraceLineGo(u.Position)) Link to comment https://wrobot.eu/forums/topic/8531-single-and-multi-target-and-aoe/#findComment-68290 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now