Description
Wiki Description
Calculates the reference's encounter level, based on the player's level, the area's level, and the passed-in difficulty.
Documentation Comment
Calculate's this references encounter level based on the requested difficulty level
0 - Easy
1 - Medium
2 - Hard
3 - Very Hard
4 - None
Parameters
intaiDifficulty=4
CK Wiki Description
The difficulty to adjust the counter level for
- The following values are acceptable:* 0:Easy
- 1:Medium
- 2:Hard
- 3:Very Hard
- 4:None (default)
- The following values are acceptable:* 0:Easy
Examples
; Figure out what level the bandit should be (using his default encounter level)
int calculatedLevel = Bandit.CalculateEncounterLevel(); Figure out what level the bandit should be if he was 'hard'
int calculatedLevel = Bandit.CalculateEncounterLevel(2)Auto-Generated Example
int myInt__aiDifficulty
int returnedValue = myObjectReference__toCallFunctionOn.CalculateEncounterLevel(myInt__aiDifficulty)