26 lines
725 B
Plaintext
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));
|
|
|
|
}
|