Staredit Network > Forums > SC2 Assistance > Topic: Customize AI
Customize AI
Nov 19 2012, 7:03 pm
By: payne  

Nov 19 2012, 7:03 pm payne Post #1

:payne:

For my Impossible Scenarios map, I'd like Raven to actually cast spells when they are attacked. Same for High Templars, Ghosts, and such.

How do I create such a customized AI?



None.

Nov 19 2012, 7:12 pm DevliN Post #2

Woah

As far as I know, for a custom AI you'd have to set up triggers for each unit based on what you'd want them to do. For example with a High Templar, you can set it up so that they only cast Psi Storm when they are near a group of units as opposed to one unit. This is just my guess, though, as I had to do this for custom units I've made.



:devlin: Currently Working On: :devlin:
Myself

Nov 26 2012, 1:02 am payne Post #3

:payne:

I ended up doing triggers, just like you said, using the "Order Unit" action and the "Unit is attacked" event. Works well. :)



None.

Nov 26 2012, 1:08 am DevliN Post #4

Woah

Sweet, good to know. It gets tricky sometimes with custom abilities, but other than that I like how simple it is to set up custom AI. :D



:devlin: Currently Working On: :devlin:
Myself

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[2026-7-26. : 3:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[2026-7-26. : 3:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[2026-7-26. : 3:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[2026-7-26. : 3:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: Ultraviolet