Creating a random word generator
Oct 06, 2016
I saw the random number generator that Lance did before but i would like to create one with words. They should be able to click on something which gives them a word or phrase, then they can pick the feelings and thinking that go with that word or phrase.
I haven't even started working on the slide for it yet, as I am just trying to figure out if i can do it with the question bank or if i need a java degree lol...any help would be appreciated.
8 Replies
Javascript lends itself best, especially when needing to track/map sentiment or feeling to words. The caveat being a) Articulate's community folks don't support it, b) javascript overall has some restrictions in different browsers and c) your idea may be quite some javascript.
I only need the word generator for the first part the rest can be a drag and drop...it is really just giving them one random word or phrase.
The "random" part will need to be javascript. I suppose you could have your random words/phrases on different layers, then set conditional triggers on each layer (e.g. Show Layer if random_number_selected == # (where # is 1..number of layers to pick from).
The javascript to generate a random number looks quite a bit like:
Math.floor(Math.random() * 4)
where the four represents the number of possible words/phrases. You'd need to assign this value to a numeric project variable; say something like "random_number_selected"
Setting variables from javascript is provided in the knowledgebase javascript information
thank you I will look into it
there are 32 words/phrases so ya that would be a lot of layers
Well we tried something, which did not work I am going to attach the story here, it is slide 4.8 I believe. I know the code works, we tried it in dreamweaver, but neither of us know much about how to put it in articulate, so the code is there, I am just not sure how to make it work. Thanks for any help you can give me.
You sir are my hero...a million thanks...I think we over-complicated it. This is fantastic!
Thank you again, I did go through that, but it didn't make sense at the time...now it does..lol...you are awesome!
This discussion is closed. You can start a new discussion or contact Articulate Support.