28 lines
1015 B
Plaintext
28 lines
1015 B
Plaintext
|
///////////////////////////////////////////////////////////////////////////////////
|
||
|
// REAL TIME STRATEGY ADVENTURE - Kit
|
||
|
// FILE: rtsa_message
|
||
|
// NAME: Message item activate script
|
||
|
// SCRIPTED BY: Deva Bryson Winblood
|
||
|
// DATE: 07/18/2003
|
||
|
///////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oMe=GetItemActivated();
|
||
|
object oPC=GetItemActivator();
|
||
|
string sMsg=GetLocalString(oMe,"sMsg");
|
||
|
string sTo=GetLocalString(oMe,"sTo");
|
||
|
string sName=GetLocalString(oMe,"sName");
|
||
|
int nSpecial=GetLocalInt(oMe,"nSpecial");
|
||
|
object oSender=GetLocalObject(oMe,"oSender");
|
||
|
SetCustomToken(91000,sTo);
|
||
|
SetCustomToken(91001,sMsg);
|
||
|
SetCustomToken(91002,sName);
|
||
|
SetLocalObject(oPC,"oMessenger",oMe);
|
||
|
SetLocalInt(oPC,"nRTSAMsgSpecial",nSpecial);
|
||
|
AssignCommand(oPC,ClearAllActions());
|
||
|
SetLocalInt(oPC,"nParm",nSpecial);
|
||
|
AssignCommand(oPC,ActionStartConversation(oPC,"rtsa_message",TRUE,FALSE));
|
||
|
SetLocalObject(oPC,"oMsgSender",oSender);
|
||
|
}
|