WoR_PRC8/_module/nss/tk_odye_setname.nss

14 lines
386 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
// Krit's Omnidye
// Called after sampling a color, so that the name can be updated.
#include "tk_odye_include"
void main()
{
// Rename the dye to be informative.
SetDyeName(OBJECT_SELF, GetLocalInt(OBJECT_SELF, DYE_INDEX));
// Provide a sound effect so it seems like something was done.
AssignCommand(GetItemPossessor(OBJECT_SELF), PlaySound("as_na_steamshrt1"));
}