<Var/Number> = This is a 'variable' storing an integer.
This command is used to set the Kha'ak aggression level. The game engine uses this to determine how often to spawn a random Kha'ak attack. Used extensively in X3R.
Example:
*test the 'set Kha'ak aggression level' command
$Agres.Level.Set = 45
set Kha'ak aggression level to $Agres.Level.Set
$Agres.Level = get Kha'ak aggression level
write to player logbook $Agres.Level
return null
Result: The aggression level is set to 45. It is also output to the Player logbook for verification.
Note:
This command has been disabled in X3TC.
The range of valid returns is from 0 to 100 inclusive. Custom game in X3TC v3.0 returns a value of 15.
Related Commands:
<RetVar> = get Kha'ak aggression level
Command Location:
- »» General Object Commands
set Kha'ak aggression level to <Var/Number>