Thread: Script Help
View Single Post
Old 03-14-2013, 12:02 AM   #2
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,288
Current Game: Knights of the Old Republic
Veteran Modder Helpful! 
If you want the conversation option available once the "unibelt" is equipped, you wouldn't want to check it against OBJECT_INVALID and return the script as false, because then the thing will never come up. Also, the item can be possessed but not equipped, so the PC could still get your node even if they didn't have the thing equipped. This script should be more of what you are looking for:

Code:
int StartingConditional() 
{

object oUniBelt = GetObjectByTag("unibelt");

object oItem = GetItemInSlot(INVENTORY_SLOT_BELT, GetFirstPC());

if ( oItem == oUniBelt)
    {
        return TRUE;
    }
return FALSE;
}
This compiles fine, I just don't know if it will work in-game (I've never done a script like this before). However, it should work... if it doesn't, feel free to come back and tell us what problems you're having.


The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Blaster Pistol Enhancement
Dustil Restoration
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
Weapon Model Overhaul Texture Rework (Thanks to Toasty Fresh!)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version
Fallen Guardian is offline   you may: quote & reply,