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

[AI] How to make Computer players cast spells?

Status
Not open for further replies.
Level 2
Joined
Feb 22, 2006
Messages
10
You can't just do nothing...Here is the solution for everyone: (I Finally figured it out)

Go into the scenario menu
_click on the player properties option
_click the Player's tab
-> Set the appropriate player to a computer player

_then click on the forces tab
-> Ensure that 'Custom Forces' and 'Fixed player settings' is ticked.

Go into the trigger editor
_click on melee initialisation
->delete the 'Run AI scripts' function.

The result is an AI that obeys your orders, never retreats and casts spells.

BEAWARE that spells will be cast given that certain conditions are met. For example, I gave a caster the 'Hurl Bolder' ability. The caster will only cast the spell when he is directly attacked by an enemy unit. It would be great if somebody could list what spells are triggered under what conditions. e.g:

_All damage spells are triggered when the unit is under attack.
_AOE spells are triggered when there are a few enemy units.

Something like the above but without my vagueness.
 
Status
Not open for further replies.
Top