Files
HeroesStone_PRC8/_module/nss/dm_sm_add5.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

21 lines
842 B
Plaintext

void main()
{
object oPlaceable = GetLocalObject(OBJECT_SELF, "DM_SM_oPlaceable5");
object oWidget = GetLocalObject(OBJECT_SELF, "DM_SM_oWidget");
int iPropIndex = GetLocalInt(oWidget, "iPropIndex");
int iCharsUsed = GetLocalInt(oWidget, "iCharsUsed");
int iEntryLen = 35 + GetStringLength(GetResRef(oPlaceable));
if( GetName(oPlaceable, TRUE) != GetName(oPlaceable))
{ iEntryLen += GetStringLength(GetName(oPlaceable)); }
if( GetLocalInt(oPlaceable, "iRetagged") == TRUE)
{ iEntryLen += GetStringLength(GetTag(oPlaceable)); }
SetLocalInt(oWidget, "iCharsUsed", (iEntryLen + iCharsUsed));
iPropIndex++;
SetLocalObject(oWidget, "oProp" + IntToString(iPropIndex), oPlaceable);
SetLocalInt(oWidget, "iProp" + ObjectToString(oPlaceable), iPropIndex);
SetLocalInt(oWidget, "iPropIndex", iPropIndex);
}