Initial commit

Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
Jaysyn904
2024-01-04 07:49:38 -05:00
parent df18cd54c8
commit 28cdb617b3
12943 changed files with 9727121 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#include "nwnx_events"
#include "nwnx_object"
#include "color_inc"
#include "nwnx_deprecated"
// OnExamine BEFORE event
void main()
{
object oPC = OBJECT_SELF;
if (!GetIsPC(oPC))
return;
object oExamined = NWNX_Object_StringToObject(NWNX_Events_GetEventData("EXAMINEE_OBJECT_ID"));
if (!GetIsObjectValid(oExamined) ||
GetObjectType(oExamined) == OBJECT_TYPE_ITEM)
return;
string sOldDesc = GetDescription(oExamined);
SetLocalString(oExamined, "XEVENT_EXAMINE_DESC", sOldDesc);
string sEffects = "\n\n" + COLOR_CODE_VIOLET + "Magical effects:\n";
sEffects += "You are unable to spot any magical effects on this object";
sEffects += COLOR_CODE_END;
SetDescription(oExamined, sOldDesc + sEffects);
}