adding a counter to a trigger

Accueil Forums Scripts adding a counter to a trigger

  • Ce sujet est vide.
2 sujets de 1 à 2 (sur un total de 2)
  • Auteur
    Messages
  • #8069 Répondre
    murk
    Invité

    hello, I’d like to add a counter to a trigger, so that after x amount of triggers a code is executed. I’m new to javascript, so forgive me if this is obvious. my assumption is I should use setMessage to the target trigger to be a counter like so

           var counter = 0;	
    	run("setMessage 100 var counter = counter++");
    		if(counter > 5){
    			run("setMessage 200 direct:// setPattern 2 {2} {0} {0}, direct:// setActive 2 {1}");
    			console.log(counter);

    however, I am not able to get this to work. Is there something obvious I’m missing?

    #8070 Répondre
    murk
    Invité

    « } » is in the code I just didnt copy it over

2 sujets de 1 à 2 (sur un total de 2)
Répondre à : adding a counter to a trigger
Vos informations :





© IanniX Association

Qu'est-ce que IanniX ? | Téléchargement | Showcase | Forum | Recherche | À propos