Alangara_PRC8/_module/nss/mn_reborn.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

26 lines
725 B
Plaintext

// Script for the reborn widget. It allows reborns to use their special powers
// -Seeker- 6/10 2005, for Alangara
void main()
{
object oPC = GetItemActivator();
object oRod = GetItemActivated();
object oTarget = GetItemActivatedTarget();
if ( oTarget == OBJECT_INVALID )
{
// Used on location
SetLocalInt( oPC, "MN_TARGETISOBJECT", FALSE );
SetLocalLocation( oPC, "MN_TARGETLOCATION", GetItemActivatedTargetLocation() );
}
else
{
SetLocalInt( oPC, "MN_TARGETISOBJECT", TRUE );
SetLocalObject( oPC, "MN_TARGETOBJECT", oTarget );
}
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionStartConversation(OBJECT_SELF, "mn_c_REBORN", TRUE, FALSE));
}