Thread: Script Help
View Single Post
Old 03-15-2013, 04:09 PM   #7
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,286
Current Game: Knights of the Old Republic
Veteran Modder Helpful! 
Quote:
Originally Posted by supreme kotor View Post
EDIT: Got the script to compile but it still just wont work script now looks like this:

int StartingConditional()
{

object oUniBelt = GetObjectByTag("unibelt");

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

if ( oItem == oUniBelt)
{
return TRUE;
("break");
}
return FALSE;
}
You want the break command to look as it does below, with no quotes or parentheses.

Code:
int StartingConditional() 
{ 
object oUniBelt = GetObjectByTag("unibelt");
 
object oItem = GetItemInSlot(INVENTORY_SLOT_BELT, GetFirstPC());
 
  if ( oItem == oUniBelt) 
     { 
      return TRUE; 
      break;
      } 

return FALSE; 
}


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,