- Joined
- Feb 2, 2011
- Messages
- 342
First I am going to allow the user to manually or randomly choose their races for an altered melee map. Then I want a random custom AI to be executed for each random players, matching their races. How can I do this?
Create a dialog for each player, with each race.
if X race is chosen, start ai?
For random
Set each race and AI to an array
Human=integer[1]
undead=integer[2]
etc
Human=AI[1]
undead=AI[2]
If player chooses random, get random integer between 1-4 and if random integer=1 set human race+ai
I don't think a dialog is needed to execute the AI, as AI is usually needed only for computer playeys, and computer players won't click any dialog button anyway.Create a dialog for each player, with each race.
if X race is chosen, start ai?
|
First I am going to allow the user to manually or randomly choose their races for an altered melee map. Then I want a random custom AI to be executed for each random players, matching their races. How can I do this?
Could you create a YouTube video or Hive Workshop tutorial to show me, and others, exactly how to do this please? Thanks!