Jaysyn904 e2f4ba74d5 Merged redundant hak files
Merged redundant hak files.  Moved hak scripts into module.  Updated gitignore.  Full Compile.  Added release folder & archive.
2024-12-12 15:02:17 -05:00

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);
}