Version 1
SubGoalCombiner SGC_AND
INITSECTION
KBSECTION//REGION Add roll bonus temporarily
EXITSECTION
//Burglary (fallback for rolling in camp)
IF
StartedLockpicking((CHARACTER)_Char, _)
THEN
ApplyStatus(_Char, "UNLOCK_CRIT_THRESHOLDS", 1.0, 1);
IF
StartedDisarmingTrap((CHARACTER)_Char, _)
THEN
ApplyStatus(_Char, "UNLOCK_CRIT_THRESHOLDS", 1.0, 1);
//No event for dialog roll
//IF
//DialogActorJoined(_, _, (CHARACTER)_Char, _)
//AND
//IsCharacter(_Char, 1)
//THEN
//ApplyStatus(_Char, "UNLOCK_CRIT_THRESHOLDS", 1.0, 1);
//Indefinitely in combat, status automatically removes when combat ends
IF
EnteredCombat((CHARACTER)_Char,_CombatGuid)
AND
IsCharacter(_Char, 1)
THEN
ApplyStatus(_Char, "UNLOCK_CRIT_THRESHOLDS_COMBAT", -1.0, 1);
//END_REGION
//REGION Apply it to party members outside of camp
//Start game
IF
UserAvatarCreated(_, (CHARACTER)_Char, _)
AND
NOT DB_InCamp(_Char)
THEN
ApplyStatus(_Char, "UNLOCK_CRIT_THRESHOLDS_AURA", -1.0, 1);
//Recruiting new character
IF
CharacterJoinedParty(_Char)
AND
NOT DB_InCamp(_Char)
THEN
ApplyStatus(_Char, "UNLOCK_CRIT_THRESHOLDS_AURA", -1.0, 1);
//Leaving camp
IF
TeleportedFromCamp(_Char)
AND
IsPartyMember(_Char, 1, 1)
THEN
ApplyStatus(_Char, "UNLOCK_CRIT_THRESHOLDS_AURA", -1.0, 1);
//Entering camp
IF
CharacterLeftParty(_Char)
THEN
RemoveStatus(_Char, "UNLOCK_CRIT_THRESHOLDS");
RemoveStatus(_Char, "UNLOCK_CRIT_THRESHOLDS_AURA");
IF
DB_InCamp(_Char)
THEN
RemoveStatus(_Char, "UNLOCK_CRIT_THRESHOLDS");
RemoveStatus(_Char, "UNLOCK_CRIT_THRESHOLDS_AURA");
//END_REGION
ENDEXITSECTION
Osiris Source Code
-
Total views612