View Single Post
Old 04-01-2012, 06:48 PM   #1
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! 
Conditional Script Help

Alright, so I've been using conditional scripts for a while now, but I've never actually had need for a conditional that checked for two globals to be certain values. Here's my attempt at making one:

Code:
int StartingConditional()
{
  int iResult = GetGlobalBoolean("DT_CHECK3");

  int iResult2 = GetGlobalBoolean("DT_CHECK4");

if(

    (iResult == TRUE) &&

    (iResult2 == FALSE) ) {

  return iResult && iResult2;  
 
}
}
Now I keep on getting an error saying that not all paths return a value. What should I change to fix this script?


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,