• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to execute Banish without target? and Banish can deal damage

Level 5
Joined
May 8, 2020
Messages
78

Ghost Scepter
Ghost Scepter+7 Attributes, Ghost Form (Active):
Makes you unable to attack or be attacked for 4 seconds, but you take 44% extra damage from spells.
Ethereal Blade
Ethereal Blade+ 40 Agility, + 10 Strength, + 10 Intelligence
Ether Blast (active) Upon targeting an enemy hero, both your hero and the target get banished for 3 seconds. Target takes 2.5x your Agi in magic damage and is slowed by 45% for 3 seconds

How turn target spell into self spell , and spell that can cause damage as a percentage of your agi
 
Level 39
Joined
Feb 27, 2007
Messages
5,013
How turn target spell into self spell
Give the hero fake spell with the targeting type you want to use. In this instance you could use something like Roar, but the best option is called Channel 'ANcl'. It is a custom spell that you're able to turn into any type of targeting/special effect you want. It doesn't give a buff.

Then you make a trigger to catch when a unit casts that custom no-target spell. The trigger should make a dummy caster, give it the correct banish ability, and order it to banish the caster. You can match the level to the level of spell that was cast, if you want level-scaled effects. The order you give is the order for the spell it's based on so in this case Human Blood Mage - Banish. When properly configured, a dummy caster can cast instantly (in a single line of code without having to wait) at any target within range. Those settings are:
  • Ability: Locust
  • Movement type "None", speed base 0
  • Cast Backswing and Cast Point both 0
  • Remove all other things like model/shadow/minimap/decay, etc.
This is also useful for solving the second spell making both ethereal, and for slowing the targeted unit. You can cause damage scaling with agility in two different ways:
  1. Every time as the spell is being cast, you use a trigger to update its data field for damage to account for current agility. Many data fields can be modified while the game is running, and damage is among them.
  2. Use the trigger action Unit Damage Target to cause the caster to damage the target. If you use the correct damage and attack type it will scale with enemy armor or other resistances to magic damage.
 
Top