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

19 lines
420 B
Plaintext

// Krit's Omnidye
// Sets the dye to receive (sample) a color the next time it is used.
#include "tk_odye_include"
void main()
{
// Get the dye that will be set.
object oDye = GetLocalObject(OBJECT_SELF, DYE_ITEM);
// Set the color index to be "sampling mode".
SetLocalInt(oDye, DYE_INDEX, -2);
// Rename the dye to be informative.
SetName(oDye, GetName(oDye, TRUE) + ": matching mode");
}