//The OnPCLogin was a test to see if when they login it will check and see if they made any changes to original stat, it works as intended but in the function not.
OnPCLoginEvent:
if ( StatusPoint != OriginalStat ) { // If status point is not equal to the Original status point saved meaning you changed it put points into something.
dispbottom "Updated Status Point";
OriginalStat = StatusPoint;
OriginalSkill = SkillPoint;
} else
if ( StatusPoint == OriginalStat ) {
dispbottom "Untouched Status Points.";
StatusPoint = OriginalStat;
SkillPoint = OriginalSkill;
end;
}
}
function script Base1PartyCheck {
if ( BaseLevel > $@BaseChoice1 ) { // If baselevel is greater than choice continue, else end.
if ( StatusPoint != OriginalStat && OriginalSkill != SkillPoint ) { // If status point is not equal to the Original status point saved meaning you changed it put points into something.
dispbottom "Updated Status Point";
OriginalStat = StatusPoint;
OriginalSkill = SkillPoint;
BaseExp = 0;
BaseLevel = $@BaseChoice1;
end;
} else
if (StatusPoint == OriginalStat && OriginalSkill == SkillPoint ) { // If Original stat is still equal to StatusPoints
dispbottom "Untouched Status Points.";
StatusPoint = OriginalStat;
SkillPoint = OriginalSkill;
BaseExp = 0;
BaseLevel = $@BaseChoice1; // Revert back to level 5 and give them their original status points.
end;
}
} else
end;
}
function script Job1PartyCheck {
if ( JobLevel > $@JobChoice1 ) { // If Joblevel is greater than choice continue, else end.
if ( StatusPoint != OriginalStat && OriginalSkill != SkillPoint ) { // If status point is not equal to the Original status point saved meaning you changed it put points into something.
dispbottom "Updated Status Point";
OriginalStat = StatusPoint;
OriginalSkill = SkillPoint;
JobExp = 0;
JobLevel = $@JobChoice1;
end;
} else
if (StatusPoint == OriginalStat && OriginalSkill == SkillPoint ) { // If Original stat is still equal to StatusPoints
dispbottom "Untouched Status Points.";
StatusPoint = OriginalStat;
SkillPoint = OriginalSkill;
JobExp = 0;
JobLevel = $@JobChoice1; // Revert back to level 5 and give them their original status points.
end;
}
} else
end;
}