is there an easy way to add 500 ++words in list from my wordpad??
or do i need to add everything one by one? oO
Have each word on its own line in a text file.
Add your text file as a "Project File". https://www.scirra.com/manual/141/files
Request the file using AJAX. https://www.scirra.com/manual/107/ajax
Parse out the words with the tokenat expression in a loop. Your source is "AJAX.LastData", your index is "loopindex", and your token is "newline" https://www.scirra.com/manual/126/system-expressions
Store in your data structure of choice, recommended array, or dictionary could work too. https://www.scirra.com/manual/108/array
Edit: Alternatively, for more advanced control over categories or nested data, you can use the XML Plugin. https://www.scirra.com/manual/139/xml
Responding to PM from CBelle requesting clarification here for the benefit of others.
AJAX is not just for images. By using the "Request project file" action, you can load the contents of your previously imported project file to memory. This is accessible through the AJAX.LastData expression.
With the conditions "AJAX on completed" and "repeat tokencount(AJAX.LastData,newline) times", you can loop through your text file and get each word with the expression "tokenat(AJAX.LastData,loopindex,newline)". Normally you would store each word in an array or dictionary, but if you want to put it directly in a list object you can do that as well by using the list's "Add item" action.
Edit: fixed tokencount expression
and "repeat tokencount(AJAX.LastData) times" not work..:/ error on tokencount
if i just put a number
Develop games in your browser. Powerful, performant & highly capable.
Sorry about that, it should be repeat tokencount(AJAX.LastData,newline).