forked from Jaysyn/PRC8
Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
22 lines
583 B
Plaintext
22 lines
583 B
Plaintext
#include "x2_inc_switches"
|
|
|
|
void main()
|
|
{
|
|
if(GetUserDefinedItemEventNumber() == X2_ITEM_EVENT_ACTIVATE)
|
|
{
|
|
object oPC = GetItemActivator();
|
|
object oTarget = GetItemActivatedTarget();
|
|
location lTarget = GetItemActivatedTargetLocation();
|
|
|
|
if(GetIsObjectValid(oTarget))
|
|
{
|
|
SetLocalObject(oPC, "prc_chatcmd_target", oTarget);
|
|
FloatingTextStringOnCreature("Chat command target set to "+GetName(oTarget), oPC, FALSE);
|
|
}
|
|
else
|
|
SetLocalLocation(oPC, "prc_chatcmd_location", lTarget);
|
|
}
|
|
}
|
|
|
|
|