ffc script changeCombosIfFound2Way{
void run ( int trigger1, int trigger2, int target1, int target2 ){
bool triggerActive = false;
bool combosChanged = false;
while(true){
triggerActive = (FirstComboOf(trigger1, 0) != -1 || FirstComboOf(trigger2, 0) != -1);
//If trigger is ON and target is NOT changed, change it
if(triggerActive==true && combosChanged==false){
for(int i=0; i<175; i++)
if(Screen->ComboD[i]==target1)
{Screen->ComboD[i]++;
combosChanged = true;
}
else if(Screen->ComboD[i]==target2) Screen->ComboD[i]++;
combosChanged = true;
}
//If trigger is OFF and target IS changed, change it back
if(triggerActive==false && combosChanged==true){
for(int i=0; i<175; i++)
if(Screen->ComboD[i]==target1+1 || Screen->ComboD[i]==target2+1)
{Screen->ComboD[i]--;
combosChanged = false;
}
}
Waitframe();
}
}
}