HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Randon attack waves in Ai

07-26-2004, 07:47 PM#1
Rafael Br
I am really new to Ais, I decided not to use the dammed blizzard AI editor,I have alredy used it and it only bring problems, so I decided to go to scripting, the question is:How can I tell to the script to train\attack with randon attack waves, I mean if I have 4 different attack waves, I wish the AI to train them randonly, is this possible? :D
07-26-2004, 08:06 PM#2
elite_master
with the regular AI Editor no but i dont think you can do it w/ scripting either (might be possible)
07-26-2004, 11:41 PM#3
AIAndy
It can be done by scripting since that means writing JASS.
I suggest you first read one of the tutorials on JASS, then have a look at the AI scripts used in the various maps of the Blizzard campaigns. After that you should have an idea how to make it choose one of 4 attack waves randomly (hint: the native GetRandomInt returns a random number in a given interval and the rest can be done with if then else).
07-27-2004, 01:17 AM#4
Rafael Br
Yes, I alredy looked at a tutorial of Ais on this map, and I know a little about Jass, but I will try to learn more, then look at the blizzard Ais, but that GetRandonInt was the function that I was looking for...Thanks