MMD_PRC8/_module/nss/use_drink.nss

16 lines
337 B
Plaintext
Raw Permalink Normal View History

2024-08-02 23:18:00 -04:00
void main()
{
object oPC = GetLastUsedBy();
int iDrank = GetLocalInt(oPC,"drank");
string sName = GetName(OBJECT_SELF);
if (iDrank == 1)
SendMessageToPC(oPC,"Although you are not thirsty, you take a drink from the "+sName);
else
{
SendMessageToPC(oPC,"You take a drink from the "+sName);
SetLocalInt(oPC,"drank",1);
}
}