/////////////////////////////////////////////////////////////////////////// // Real Time Strategy - NWN - Use Throne of Power //========================================================================= // By Deva Bryson Winblood. 03/02/2003 //////////////////////////////////////////////////////////////////////////// void main() { object oMe=OBJECT_SELF; object oPC=GetLastUsedBy(); string sID=GetLocalString(oPC,"sTeamID"); object oMod=GetModule(); object oLead=GetLocalObject(oMod,"oTeamLead"+sID); if (GetSittingCreature(oMe)==OBJECT_INVALID) { // sit down AssignCommand(oPC,ClearAllActions()); AssignCommand(oPC,ActionSit(oMe)); } // sit down if (GetTag(oMe)==sID&&oPC==oLead) { // you are allowed to use this //SendMessageToPC(oMe,"Throne Speak"); DelayCommand(5.0,AssignCommand(oMe,ActionStartConversation(oPC,"rts_throne",TRUE,FALSE))); } // you are allowed to use this }