View Single Post
Old 05-01-2012, 04:18 AM   #178
Hassat Hunter
Forumite
 
Join Date: Jan 2010
Posts: 555
Kotor2 has this script by default... it's c_lightsaber_eq. Content;
Code:
//  c_lightsaber_eq
/*
    Does the Party Leader have a Lightsaber equipped?
*/
//  Created By:  Tony Evans 10/25/04

int StartingConditional()
{
    object oWeap = GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON, GetPartyLeader());

    if (FindSubString(GetName(oWeap), "Lightsaber") != -1)
        return TRUE;

    return FALSE;
}
Hassat Hunter is offline   you may: quote & reply,