Created top hak for crafting dialog. Moved Bioware creature abilities to top hak. Fixed DMFI wand handouts. Added DMFI language handouts. Added CCOH 6. Disabled PC corpse system. Modified new player startup system. Full compile. Updated release archive.
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
#include "mk_inc_itm_disp"
|
|
#include "mk_inc_iprp"
|
|
#include "mk_inc_states"
|
|
|
|
void main()
|
|
{
|
|
object oPC = OBJECT_SELF;
|
|
object oItem = GetLocalObject(oPC, MK_ITM_DISP_CALLBACK_OBJECT);
|
|
|
|
string sLabel = MK_IPRP_GetItemName(oItem, TRUE);
|
|
|
|
string sColorTag = GetLocalString(oPC, "MK_CHEATS_FLAGS_COLOR");
|
|
string sCloseTag = "</c>";
|
|
|
|
int nState = MK_GenericDialog_GetState();
|
|
|
|
switch (nState)
|
|
{
|
|
case MK_STATE_CHEATS_CURSEDFLAG:
|
|
if (GetItemCursedFlag(oItem))
|
|
{
|
|
sLabel += (sColorTag + " *" + GetStringByStrRef(111874) + "*" + sCloseTag);
|
|
}
|
|
break;
|
|
case MK_STATE_CHEATS_PLOTFLAG:
|
|
if (GetPlotFlag(oItem))
|
|
{
|
|
sLabel += (sColorTag + " *" + GetStringByStrRef(6808) + "*" + sCloseTag); // or 7520?
|
|
}
|
|
break;
|
|
case MK_STATE_CHEATS_STOLENFLAG:
|
|
if (GetStolenFlag(oItem))
|
|
{
|
|
sLabel += (sColorTag + " *" + GetStringByStrRef(7102) + "*" + sCloseTag);
|
|
}
|
|
break;
|
|
case MK_STATE_CHEATS_NOTIDENTIFIED:
|
|
if (!GetIdentified(oItem))
|
|
{
|
|
// Postfix already done by MK_IPRP_GetItemName()
|
|
sLabel = sColorTag + sLabel + sCloseTag;
|
|
}
|
|
break;
|
|
}
|
|
SetLocalString(OBJECT_SELF, MK_ITM_DISP_CALLBACK_LABEL, sLabel);
|
|
}
|