So it checks the level of the main character only?
Still it's not clear to me what it checks, but it doesn't work as expected or as i like/want...
Asc64: i'm currently using this coding to check the highest levelled character:
CheckStat(StrongestOf(),"X",LEVEL)
I still have to undesrtand if i can work something with dual/multiclassed members ... my next tests ;-)
mm75
PS: if u have time, have a look here->http://forums.gibber...showtopic=15298
So your using the CheckStat I shared with you and the StrongestOf() that devsin shared. that's good. Now for your multi-class characters. As an example you want to look for level 5 in a fighter mage thief combo
IF
Class(StrongestOf(),FIGHTER_MAGE_THIEF)
OR(3)
CheckStat(StrongestOf(),"5",LEVEL)
CheckStat(StrongestOf(),"5",LEVEL2)
CheckStat(StrongestOf(),"5",LEVEL3)
THEN
RESPONSE #100
/* do your actions */
END
The class check is true IF the strongest is a FMT, then it would check to see if any one of their 3 classes is at level 5. However it returns true even if their lowest is at level 5.
IF
Class(StrongestOf(),FIGHTER_MAGE_THIEF)
OR(3)
CheckStat(StrongestOf(),"5",LEVEL)
CheckStat(StrongestOf(),"5",LEVEL2)
CheckStat(StrongestOf(),"5",LEVEL3)
!CheckStatGT(StrongestOf(),"5",LEVEL)
!CheckStatGT(StrongestOf(),"5",LEVEL2)
!CheckStatGT(StrongestOf(),"5",LEVEL3)
THEN
RESPONSE #100
/* do your actions */
END
This returns true if one of the three class levels of the FMT is at 5 but none of them are greater than 5.
If you use the class check you'll need at least three blocks to get the strongest checked against every class type. For example, again looking to find the strongest to be at level 5
//check strongest for triple class levels
IF
OR(2)
Class(StrongestOf(),FIGHTER_MAGE_THIEF)
Class(StrongestOf(),FIGHTER_MAGE_CLERIC)
OR(3)
CheckStat(StrongestOf(),"5",LEVEL)
CheckStat(StrongestOf(),"5",LEVEL2)
CheckStat(StrongestOf(),"5",LEVEL3)
!CheckStatGT(StrongestOf(),"5",LEVEL)
!CheckStatGT(StrongestOf(),"5",LEVEL2)
!CheckStatGT(StrongestOf(),"5",LEVEL3)
THEN
RESPONSE #100
/* do your actions */
END
// above returns true if strongest is either FMT or FMC and one of the three levels is at 5 but none over 5
// check strongest for double class levels
IF
OR(8)
Class(StrongestOf(),FIGHTER_MAGE)
Class(StrongestOf(),FIGHTER_CLERIC)
Class(StrongestOf(),FIGHTER_THIEF)
Class(StrongestOf(),MAGE_THIEF)
Class(StrongestOf(),CLERIC_MAGE)
Class(StrongestOf(),CLERIC_THIEF)
Class(StrongestOf(),FIGHTER_DRUID)
Class(StrongestOf(),CLERIC_RANGER)
OR(2)
CheckStat(StrongestOf(),"5",LEVEL)
CheckStat(StrongestOf(),"5",LEVEL2)
!CheckStatGT(StrongestOf(),"5",LEVEL)
!CheckStatGT(StrongestOf(),"5",LEVEL2)
THEN
RESPONSE #100
/* do your actions */
END
//the above returns true if the strongest is either FM, FC, FT, MT, CM, CT, FD, or CR and one of their levels is at 5 and none over 5
//check strongest for single class levels
IF
!Class(StrongestOf(),FIGHTER_MAGE_THIEF)
!Class(StrongestOf(),FIGHTER_MAGE_CLERIC)
!Class(StrongestOf(),FIGHTER_MAGE)
!Class(StrongestOf(),FIGHTER_CLERIC)
!Class(StrongestOf(),FIGHTER_THIEF)
!Class(StrongestOf(),MAGE_THIEF)
!Class(StrongestOf(),CLERIC_MAGE)
!Class(StrongestOf(),CLERIC_THIEF)
!Class(StrongestOf(),FIGHTER_DRUID)
!Class(StrongestOf(),CLERIC_RANGER)
CheckStat(StrongestOf(),"5",LEVEL)
THEN
RESPONSE #100
/* do your actions */
END
//the above returns true if the strongest is not any of the multi/dual class characters and there level is 5.
This may get you closer to what you want. However, I don't know yet how to determine which class is currently active in a dual class character. There maybe situations where you have the strongest as a dualled fighter/thief and their fighter class is 5 and their thief class is 4. They're active in the thief but their inaccessible fighter level would still make them return true.