This defines what to fall back to ("sleeping") if the specified attribute doesn't exist for an element. You could use this for things such as gender, verb tenses, alternate descriptions, and so on. The syntax will add custom properties to elements which can be referred to later. Would you like to see ?Īdding "written" will record the element as its literal representation, instead of its generator. Remembers the animal by its identifier (#pet) and returns the same animal in both instances. This can quickly get complicated - make sure to keep track of your brackets! This returns one of the elements between brackets at random, without needing to create a separate list.Ĭan even be nested with regular lists, as such : will be replaced by a random element from the $animal list. (You can also apply this setting globally by having "$all roots" somewhere in your file.)Īdds a new element named "fish" to the current list.Īdds a new element to the current list, but this element will only have a 20% chance of being added to the random selection table. #WRITING CHALLENGE GENERATOR GENERATOR#This is good for expanding on included lists.Īdds this element as a base generator that can be selected from the "Root" dropdown menu. Starts adding elements to the list with this identifier. Starts a new list with the identifier "animal". #WRITING CHALLENGE GENERATOR FULL#You are encouraged to create "utility generators" full of lists (such as names or colors) that other people can include in their own generators to expand them easily. Try to use as few inclusions as possible, as they make the loading time for your generator much longer. Inclusions should always be declared at the top of the file, before any other data. This adds to your generator everything defined in the generator at the specified URL. Sets the default amount of results the generator should yield $description : Description of my generator You can change how many items are generated by adding " &amount=10" to the url you can also change the base generator by adding " &seed=element". The last list declared will be used as the base generator (in this case : $phrase). This will generate sentences such as "My pet is a cat", or "I am feeding my fish". To create a random generator, you simply have to define lists of things that reference each other.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |