SetEncounterDifficulty

From NWN Lexicon



Contents

[edit] SetEncounterDifficulty(int, object)

Sets the difficulty level of an encounter.

void SetEncounterDifficulty(
    int nEncounterDifficulty,
    object oEncounter = OBJECT_SELF
);

[edit] Parameters

nEncounterDifficulty

ENCOUNTER_DIFFICULTY_*

oEncounter

The encounter to change the difficulty. (Default: OBJECT_SELF)


[edit] Description

Sets the difficulty level of oEncounter.



[edit] Remarks

The spawn-part of an encounter fires BEFORE the encounter's OnEnter does. Thus, if you call this in the OnEnter event, it will not have any effect on the group being spawned. You can draw a trigger around the encounter and call this function from OnEnter of that trigger instead as a workaround.


[edit] Version

1.61

[edit] See Also

constants: 

ENCOUNTER_DIFFICULTY_* Constants



 author: Tom Cassiotis, editor: Lilac Soul
 

Personal tools
Categories