Skip to content

Latest commit

 

History

History

motivational-quotes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MOTIVATIONAL QUOTES

Get and create motivational quotes

Download

Link

Short Description

This plugin has two parts:

  1. the first shows a motivation quote when you launch Construct 3.
  2. the second provide a random motivational quote in your personal project

It's possible to set 3 sources for the random quotes:

  1. the plugin's library
  2. a project file in your own project
  3. a json file from another site

In the example file I show how to use all the 3 methods. The external source is set on FreeCodeCamp repository but you can customize it.

ACEs

DEFAULT

  • GetQuoteJSON: [expression] Get a quote like a JSON ({quote, author}).
  • GetQuoteFromJSON: [expression] Get the quote from a JSON string ({quote, author}).
  • GetAuthorFromJSON: [expression] Get the author from a JSON string ({quote, author}).

LOCAL

  • Initialize JSON from file {0}: [action] Inizialize a JSON from a project file.
  • GetQuoteFromLocalJSON: [expression] Get a quote like a JSON ({quote, author}) from a project file.
  • GetPropertyFromJSON: [expression] Get a property from a JSON file.

OTHERS

  • Inizialize an external JSON from URL {1} with alias {0}: [action] Initialize a JSON from an external URL.
  • GetQuoteFromExternalJSON: [expression] Get a quote like a JSON ({quote, author}) from a remote file.
  • GetPropertyFromJSON: [expression] Get a property from a JSON file.

REMOVE

  • Remove JSON {0} from the memory: [action] Remove a JSON from the memory.
  • Remove all the JSONs from the memory: [action] Remove all the JSONs from the memory.

Show a motivation quote

Show a motivation quote

How to use

demo

-> System: Set newQuote to MotivationalQuotes.GetQuoteJSON (as JSON)

-> quote: Set text to MotivationalQuotes.GetQuoteFromJSON(newQuote)

-> author: Set text to MotivationalQuotes.GetAuthorFromJSON(newQuote)