• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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
525

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