I need help getting out of myState by finishing this function.
Basically, I have 3 detectors sending out data at certain thresholds, when one of those transmitters stop, the "function"(its not a function xD) below gets called. My only problem is, I have no idea how to determine what Int that should go in the EquipBasic() function.
My big problem is that I have 5 different endings, and i can't figure out what to do, to find the correct int. The Values from this array does not line up with values on the Equipment index, because this array can be customized. The LowStatCall() had an int variable included because it was the easiest way, but I can't do that on my out (I think).
What I think, this might be wrong, I need, is a way to either cross reference the arrays or find something I can include in my LowStatCall() to make it simple and easy to get out again.
Function LowStatEnd(String Main, String SecStat01, String SecStat02, MagicEffect SecStat01MGEF, magicEffect SecStat02MGEF, Bool Tocheck)int MainInt = priorityListCurrent.Find(MAIN) int SecStat01Int = Prioritylistcurrent.Find(SecStat01) int SecStat02Int = PriorityListCurrent.Find(SecStat02) int OnCombatInt = PriorityListCurrent.Find("OnCombat") Int LeaveCombatInt = PriorityListCurrent.Find("LeaveCombat") String Zero = PriorityListCurrent[0]if toCheck == true If MainInt == 4 if SecStat01Int > SecStat02Int if !p.HasMagicEffect(SecStat02MGEF) ;EquipBasic() elseif SecStat01Int < SecStat02Int if !p.HasMagicEffect(SecStat01MGEF) ;EquipBasic() endif elseif MainInt == 3 endifendifendifendifendfunction
Thanks!