I want to create game like risk or something else.
And faced with enemy AI problem.
Question is how to make enemy turn that computer sothing do(send army to citys, attack other player or change military size)
link text
2 Answers
2There are different ways to do it.
The question you need to ak yourself is, waht I want the AI to do, and then just do the actions.
For an AI, you will mainly have to know how should look your algorithm. How the computer will make the choices, and based on what.
Starting with a Risk-like gasme might not be the easiest way to start.

[8044-untitled.png|8044] Here is simple map. How from (10 points) send to player land then mouse press on it. And how calculating points who gets every turn. Sorry for my bad english.
– omega117One more problem. How need to take variables from all scripts who have GameObjects tag "Player"? (Example = cube and square they have scripts (each other)with (static var Points : int;) and both have tag "Player". Now I need use these variables in calculating. How take them?) Please help would be realy nice :D
– omega117if the variable is static then first there is only really one of them for all instances of the script (please consider this) second as long as the variable is public static (UnityScript does this by default), and the class is compiled at the least on the same assembly then all you have to do is ClassName.staticVar, and you can access the value. though you might want to insure that the value is only changed independent of things like Update(), or OnGUI()
– gardian06But how take it from tag with "Player". (And how exactly be tag there is no known, becouse Player conquer land and get more points)
– omega117