14 lines
451 B
Plaintext
14 lines
451 B
Plaintext
|
// Script Conditional:
|
||
|
// TRUE if the itemnamer target no longer has its original name.
|
||
|
|
||
|
int StartingConditional()
|
||
|
{
|
||
|
// Get the original name.
|
||
|
object oTarget = GetLocalObject(OBJECT_SELF, "TK_ITEMNAMER_Target");
|
||
|
string sOrigName = GetName(oTarget, TRUE);
|
||
|
// Store the original name in a custom token.
|
||
|
SetCustomToken(1146, sOrigName);
|
||
|
// Return TRUE if the current name is different.
|
||
|
return GetName(oTarget) != sOrigName;
|
||
|
}
|