generated from Jaysyn/ModuleTemplate
22 lines
739 B
Plaintext
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);
|
|
}
|
|
}
|
|
}
|
|
}
|