Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

need a script..(TSL)

Page: 1 of 1
 Qui-Don Jorn
12-03-2010, 10:47 PM
#1
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
 DarthStoney
12-07-2010, 7:58 PM
#2
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;
}
}
 Qui-Don Jorn
12-09-2010, 2:36 AM
#3
Thanks Darth Stoney... going to test this out asap.
-Jorn
 Qui-Don Jorn
12-11-2010, 1:10 AM
#4
That works beautifully!
Thanks again mate!
-jorn
Page: 1 of 1