Qui-Don Jorn Posted December 4, 2010 Share Posted December 4, 2010 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? Hope you can help -Jorn Link to comment Share on other sites More sharing options...
DarthStoney Posted December 8, 2010 Share Posted December 8, 2010 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; } } Link to comment Share on other sites More sharing options...
Qui-Don Jorn Posted December 9, 2010 Author Share Posted December 9, 2010 Thanks Darth Stoney... going to test this out asap. -Jorn Link to comment Share on other sites More sharing options...
Qui-Don Jorn Posted December 11, 2010 Author Share Posted December 11, 2010 That works beautifully! Thanks again mate! -jorn Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.