generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
19
_module/nss/flavored_text.nss
Normal file
19
_module/nss/flavored_text.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if(GetIsPC(oPC) == TRUE) {
|
||||
string sString = GetName(OBJECT_SELF);
|
||||
string sVal = GetStringLeft(sString, 6);
|
||||
string sVar = GetStringRight(sString, 6);
|
||||
string sTest = GetLocalString(oPC, sVar);
|
||||
|
||||
if(sTest != sVal) {
|
||||
//do once
|
||||
SetLocalString(oPC, sVar, sVal);
|
||||
//flavor text
|
||||
FloatingTextStringOnCreature(sString, oPC, FALSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user