WoR_PRC8/_module/nss/tk_odye_setname.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

14 lines
386 B
Plaintext

// 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"));
}