Forum Discussion

JayDharap's avatar
JayDharap
Community Member
11 years ago

Add comments in the "//This is a comment" style to triggers?

Hello all!

Ive been making an e-learning with a lot of variables, and a lot of conditions, and now this far into the production, Im getting a bit confused about what a trigger that I may have built earlier is for.

Also, I think that if i ever had to make changes to this e-learning in the future, it would take me a LOT of work to recall/figure out which trigger was for what...

Is there any way we can add comments to triggers easily so we know why we put them there?

Cheers

Jay 

  • HarriC's avatar
    HarriC
    Community Member

    Hi Jay,

    What I sometimes do is place a shape or a textbox off-screen and put all my notes in there. The learner will never see it but if you need to edit the course later you may find it useful.

    Hope this helps

    Harri

  • JayDharap's avatar
    JayDharap
    Community Member

    Sounds like a good thing to do until Articulate do this for us!  Thank you Harri!

  • I've just got to a very similar place myself.

    As an ex programmer I'd really like to see some way to annotate some of the more complex things I've done.

    An off screen text box is an unpleasant and seemingly unprofessional work around!

     

  • Badger's avatar
    Badger
    Community Member

    +1 for this! Some of the lengths that we sometimes need to resort to when getting the presentations to "sing" will cause major heartache for a future maintenance programmer.

  • If you have to have your comment among a certain group of triggers:

    Adjust variable Comment assign = "This is a comment" when timeline starts object = *

    * - choose object among whose triggers you want the comment.

    You can even make it "//This is a comment" if necessary :)

    • Badger's avatar
      Badger
      Community Member
      Walt Hamilton

      If you have to have your comment among a certain group of triggers:

      Adjust variable Comment assign = "This is a comment" when timeline starts object = *

      * - choose object among whose triggers you want the comment.

      You can even make it "//This is a comment" if necessary :)

      well, yes. you *could* do that. But the idea of actually causing code to execute at runtime unnecessarily is somewhat abhorrent.

      *if* you were prepared to do such a thing (although it's poor practice), then you'd be better off putting fake JS triggers onto place and commenting within the JS about your other triggers (or doing some logging). This would still a bonkers way of doing anything though...

      Ideally it would be good to see

      1. allowing "grouping" of triggers into (multiple) user-definable categories so that we can track what the blazes each set of triggers are for. this is different to what objects a trigger may be associated with.  These categories would need to be available across an entire story, not just within scenes or slides.

      2. comments enterable for each individual trigger

      3. comments enterable for each trigger category