Initial commit

Initial commit
This commit is contained in:
Jaysyn904
2024-09-13 09:10:39 -04:00
parent 09dc8aec92
commit d1c309ae63
8437 changed files with 8727659 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
// This script gives XP for unlocking the calling object.
//
// ============================================================================
// Part of the "Aspire" module foundation package.
// Author: Kaylor
// ============================================================================
void main()
{
object oCreature = GetLastUnlocked();
object oReferenceMember = GetObjectByTag("Aspire_ReferenceMember_Hostile");
int nXP = GetLockUnlockDC(OBJECT_SELF) + d8(2);
// Picking locks is a chaotic act against all but the hostile faction.
if (oReferenceMember != OBJECT_INVALID){
if (GetFactionEqual(OBJECT_SELF, oReferenceMember) == FALSE){
AdjustAlignment(oCreature, ALIGNMENT_CHAOTIC, 1);
}
}
GiveXPToCreature(oCreature, nXP);
}