Kael
Deity
iAIValue- is a number. Reflects the AI trigger value for this event.
[/indent]
What does this trigger exactly do? I'm not a modder but I'm very interested in the random events + improved AI in BTS and I was wondering whether this means the AI also gets random events? I think it would be unfair if the AI didn't get to take advantage of the bonuses these random events (may) provide.
The AI does a good job of picking which event it prefers from the list it is given, factoring in the specific game situation etc. But if their wasn't any randomness then most events that weren't situational would always get the same result from the AI (computers are methodical like that).
iAIValue is a random number for that eventtrigger such that the AI picks a number 1 to this number (its 1000 most of the time). And then applies any modifiers on top of that. That way there is some randomness in the options the AI selects and well as some logic. Setting this value higher will cause the AI to be more random in its selection, setting it lower would allow the logical part of the calculation to be more significant.