Files
HeroesStone_PRC8/_module/nss/descriptive_trig.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

22 lines
739 B
Plaintext

void main()
{
object oPC = GetEnteringObject();
string sDesc = GetName(OBJECT_SELF);
//Determine that the trigger hasnt fired for this PC before
if (GetLocalInt(OBJECT_SELF, GetName(oPC) + "Has Fired") < 1)
{
//Determine that the PC is a valid object
if (GetIsObjectValid(oPC))
{
//If conditional just to verify that it is a PC not a wandering NPC or something of that nature
if (GetIsPC(oPC))
{
// I like floaty text :) soo much nicer and more in mood for a player
FloatingTextStringOnCreature(sDesc, oPC, FALSE);
//Set the Int so that it will no longer fire for the PC
SetLocalInt(OBJECT_SELF, GetName(oPC) + "Has Fired", 1);
}
}
}
}