mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-07-31 01:15:55 -04:00
19 lines
405 B
Plaintext
19 lines
405 B
Plaintext
/***** TRIGGERS ********************************************************/
|
|
trigger OnSpeaking(string text)
|
|
{
|
|
obj_id target = getLookAtTarget(self);
|
|
if (target == null)
|
|
target = self;
|
|
|
|
if (text == "age")
|
|
{
|
|
int age = getCurrentBirthDate() - getPlayerBirthDate(target);
|
|
//debugSpeakMsg(self, "Age ->" + age);
|
|
sendSystemMessageTestingOnly(self, "Age ->" + age);
|
|
}
|
|
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|