Jump to content

Photo

Script for counting number of combos of a certain type on screen...


  • Please log in to reply
1 reply to this topic

#1 idontknow8

idontknow8

    Senior

  • Members

Posted 09 February 2017 - 03:36 PM

Is there a certain script for "If number of combo type x = number y"... (then perform a certain action)?

 

Basically I want it so that if there are zero combos with combo type Script 1, then trigger the screen's secrets.  Place a number of combos with Script 1 all around the screen, each one with a different way to change them (like pound combos, step->next, etc.) and when all of them have changed, then the screen's secrets are triggered.

 

Is this possible?



#2 Avaro

Avaro

    o_o

  • Members
  • Real Name:Robin
  • Location:Germany

Posted 09 February 2017 - 03:58 PM

Pound combos and step->next combos can't use the script combo type. But here's the script:
 

        int CombosFound = 0;
        for(int i=0; i<176; i++){ //checks all combos on screen
            if ( Screen->ComboT[i] == CT_SCRIPT1 )
                CombosFound ++; //count all script 1 combos
        }
        if ( CombosFound == 0 ) {
            //trigger secrets
        }

Edited by Avataro, 09 February 2017 - 04:02 PM.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users