Hey guys,..can't figure one out for this. hoping someone can help out.
 
 
 Need a conditional that not only checks if npc is a jedi, but what level jedi they are.
 So that the dialog line only comes up if BaoDur is a say, 3rd level jedi guardian.
 Of course, it has to be in all the same script so i can use the other slot for a global...shouldnt be hard right?:raise:
 Hope you can help
 -Jorn
  
 
  
  
    Give this a shot, it compiles but not sure if it works. :)
 int StartingConditional() {
 object oBaodur = GetObjectByTag("BaoDur", 0);
 int nClass1 = CLASS_TYPE_JEDIGUARDIAN;
 if (GetLevelByClass(nClass1, oBaodur)==3){
 return 1;
 }
 else {
 return 0;
 }
 }
  
 
  
  
    Thanks Darth Stoney... going to test this out asap.
 -Jorn
  
 
  
  
    That works beautifully!
 Thanks again mate!
 -jorn