ChangeAIPersonality: Difference between revisions

From Ashes of the Singularity - Official Wiki
Jump to navigation Jump to search
(Created page with "The ChangeAIPersonality command changes an AI player's personality. ==Arguments== *'''Player''' - The index of the player to change *'''Name''' - The name...")
 
No edit summary
 
Line 1: Line 1:
The ChangeAIPersonality [[Script_Commands|command]] changes an AI player's personality.
The ChangeAIPersonality [[Script_Commands|command]] changes an AI player's personality.
==Arguments==
 
== Arguments ==
 
*'''Player''' - The index of the player to change  
*'''Player''' - The index of the player to change  
*'''Name''' - The name of the personality to set it to (defined in \Assets\GameCore\[[DefaultPlayerAI.xml]])  
*'''Name''' - The name of the personality to set it to (defined in \Assets\GameCore\[[DefaultPlayerAI.xml|DefaultPlayerAI.xml]])  
==Common Usage==
 
*Manually setting an AI personality (by default each AI player is assigned a random personality)
== Common Usage ==
*Choosing from a subset of AI personalities at game start in conjunction with random [[Var]] commands and triggers, for instance to rule out personalities that favor heavy aircraft investment
 
==Limitations==
*Manually setting an AI personality (by default each AI player is assigned a random personality)  
*Should be used sparingly; the different AI personalities are key to replayability
*Choosing from a subset of AI personalities at game start in conjunction with random [[Var|Var]] commands and triggers, for instance to rule out personalities that favor heavy aircraft investment  
 
== Limitations ==
 
*Should be used sparingly; the different AI personalities are key to replayability  
[[Category:Commands]]

Latest revision as of 21:12, 18 January 2017

The ChangeAIPersonality command changes an AI player's personality.

Arguments

  • Player - The index of the player to change
  • Name - The name of the personality to set it to (defined in \Assets\GameCore\DefaultPlayerAI.xml)

Common Usage

  • Manually setting an AI personality (by default each AI player is assigned a random personality)
  • Choosing from a subset of AI personalities at game start in conjunction with random Var commands and triggers, for instance to rule out personalities that favor heavy aircraft investment

Limitations

  • Should be used sparingly; the different AI personalities are key to replayability