Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hello, I plan on making a map where players fight an AI controlled boss who casts skills, I wanted to know if the AI editor can be made so that they cast these skills cause I've read the AI Tutorial and it only shows what order to learn
Even better would be basing the custom spells on similar standard spells, so the PC heroes will use them when they would actually cast the standard ones.
actually, you can make the player (say player 2) a 'computer', and you can always do trigger AI, the boss can automatically cast spells on that method...
i was planning to do that but how do i do trigger AI with the computer
Events

Time - every 20 seconds of the game time (example time is the cooldown of the spell)
Actions

Unit - Order (BOSS UNIT) to (FLAMESTRIKE) random unit within 512 of (BOSS UNIT)
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_<YourVariableName>)
Do you want to remove the special effect of Flame Strike or remove the location ?
If you want to remove the special effect, use this:
If you want to remove the location of the last created special effect, use this: call RemoveLocation(udg_<ThisIsWhatYourVariableNameStandsFor>) for example it's fslocation so it is written as call RemoveLocation(udg_fslocation) and remember, cleaning leaks consist of SENSITIVE CASE of letters and numbers
Special Effect - Destroy (Last created special effect)
It's in the Custom Script:
Custom script: call RemoveLocation(udg_<YourVariableName>)
