mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
/**********************************************************************
|
|
* Copyright (c)2000-2002 Sony Online Entertainment Inc.
|
|
* All Rights Reserved
|
|
*
|
|
* Title: <title>
|
|
* Description: <description>
|
|
* @author $Author:$
|
|
* @version $Revision:$
|
|
**********************************************************************/
|
|
|
|
|
|
/***** INCLUDES ********************************************************/
|
|
|
|
|
|
/***** CONSTANTS *******************************************************/
|
|
|
|
|
|
/***** 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;
|
|
}
|
|
|
|
/***** MESSAGEHANDLERS *************************************************/
|
|
|
|
|
|
/***** COMMANDHANDLERS *************************************************/
|
|
|
|
|
|
/***** FUNCTIONS *******************************************************/
|