• 🏆 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!

[Spell] Issue with spell targets allowed

Status
Not open for further replies.
Level 21
Joined
Mar 29, 2020
Messages
1,237
afaik you will have to edit the available targets manually:

- detect when the caster is issued the spell order(/ maybe you can get away with "unit starts casting ")

- filter the targets you want

when it isn't a legal target:

- order the caster to stop.

- show an error message to the triggering player
 
Level 12
Joined
Feb 5, 2018
Messages
521

On this thread I made this:
- detect when the caster is issued the spell order(/ maybe you can get away with "unit starts casting ")

- filter the targets you want

when it isn't a legal target:

- order the caster to stop.

- show an error message to the triggering player
There is a testmap attached also.
 
Status
Not open for further replies.
Top