Ok I might have missed it but I was searching I need a script that determines what level the PC or Party memeber is like if the PC is level 15 Jedi Guardian and Level 10 Sith Lord I need to get that the PC is level 25 same with say atton say he is a Level 20 Scoundral and level 5 Jedi I need it to get him at level 25.
I need a script that determines what level the PC or Party memeber is like if the PC is level 15 Jedi Guardian and Level 10 Sith Lord I need to get that the PC is level 25 same with say atton say he is a Level 20 Scoundral and level 5 Jedi I need it to get him at level 25.
Use the GetHitDice() script function, it returns the total character level of the creature you specify as parameter.
How you use it depend on what you need the script for. Is it a conditional script for use in a dialog?
If so, something like this should work if you put the first parameter to the level the creature should at least be, and the string parameter to the Tag of the creature to check (or leave tag blank to check the player character):
int StartingConditional() {
int iLevel = GetScriptParameter(1);
string sTag = GetScriptStringParameter();
object oCreature = (sTag != "" ? GetObjectByTag(sTag) : GetFirstPC());
return (GetHitDice(oCreature) >= iLevel);
}
Thanks Stoffe no it is a script conditional in a script but that gives me a great idea of what I need thanks.