{"id":2081,"date":"2020-04-09T09:59:17","date_gmt":"2020-04-09T06:59:17","guid":{"rendered":"https:\/\/loquiz.com\/support\/?p=2081"},"modified":"2021-07-02T17:12:09","modified_gmt":"2021-07-02T14:12:09","slug":"basic-examples","status":"publish","type":"post","link":"https:\/\/loquiz.com\/support\/basic-examples\/","title":{"rendered":"Basic examples"},"content":{"rendered":"\n<p>Below are some basic examples for Creator logic.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Show all tasks<\/h2>\n\n\n\n<p>To show all tasks from the beginning of the game it is enough to place the action block as stand alone. The same applies to SHOW IN LIST action. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"59\" class=\"wp-image-2082\" style=\"width: 300px;\" src=\"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/show-all-tasks-on-map.png\" alt=\"Show all tasks on the map\" srcset=\"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/show-all-tasks-on-map.png 769w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/show-all-tasks-on-map-300x59.png 300w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/show-all-tasks-on-map-60x12.png 60w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/show-all-tasks-on-map-150x29.png 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/h2>\n\n\n\n<p>All tasks within a game list at the time of saving the game are shown on map. PS! You also need to assign locations to all the tasks after you add the action block. If you add new tasks to the game you also need to assign locations to them if they are not location specific.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Basic WHEN-THEN block<\/h2>\n\n\n\n<p>To show another task on a map when first task is answered use the basic WHEN-THEN statement.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"90\" class=\"wp-image-2084\" style=\"width: 300px;\" src=\"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finished.png\" alt=\"\" srcset=\"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finished.png 1204w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finished-300x90.png 300w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finished-1024x308.png 1024w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finished-768x231.png 768w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finished-60x18.png 60w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finished-150x45.png 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n\n\n\n<p>This statement will show second task on a map when first task is answered (correctly or incorrectly). In this case the second task also needs to be assigned a location on a map.  In case you want to show two tasks on a map after the task #1 is answered add the second action block as below. <\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"121\" class=\"wp-image-2085\" style=\"width: 300px;\" src=\"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple2-finished.png\" alt=\"\" srcset=\"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple2-finished.png 1254w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple2-finished-300x121.png 300w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple2-finished-1024x414.png 1024w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple2-finished-768x311.png 768w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple2-finished-60x24.png 60w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple2-finished-150x61.png 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n\n\n\n<p>You can not use AND logic within the action block.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Simple finish condition<\/h2>\n\n\n\n<p>To write a simple finish condition put FINISH action block within the WHEN-THEN statement.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"97\" class=\"wp-image-2086\" style=\"width: 300px;\" src=\"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finish-the-game.png\" alt=\"Simple finish condition\" srcset=\"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finish-the-game.png 908w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finish-the-game-300x97.png 300w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finish-the-game-768x248.png 768w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finish-the-game-60x19.png 60w, https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/simple-finish-the-game-150x48.png 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n\n\n\n<p>The example above will finish the game when all the tasks in a game are answered. Please note that all the tasks in a games task list need to be answered and hence be accessible to the player. If this is not the case then the game will not finish on this condition. <\/p>\n\n\n\n<p>If there are several FINISH conditions, then the game will end when any one of them becomes true.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below are some basic examples for Creator logic.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-2081","post","type-post","status-publish","format-standard","hentry","category-creating-games"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Basic examples - Loquiz knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/loquiz.com\/support\/basic-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Basic examples - Loquiz knowledgebase\" \/>\n<meta property=\"og:description\" content=\"Below are some basic examples for Creator logic.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/loquiz.com\/support\/basic-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"Loquiz knowledgebase\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-09T06:59:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-02T14:12:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/show-all-tasks-on-map.png\" \/>\n<meta name=\"author\" content=\"Eric\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eric\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/\"},\"author\":{\"name\":\"Eric\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#\\\/schema\\\/person\\\/146baa991dc15587d39906934da45dc7\"},\"headline\":\"Basic examples\",\"datePublished\":\"2020-04-09T06:59:17+00:00\",\"dateModified\":\"2021-07-02T14:12:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/\"},\"wordCount\":272,\"image\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/loquiz.com\\\/support\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/show-all-tasks-on-map.png\",\"articleSection\":[\"4. Creating Games\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/\",\"url\":\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/\",\"name\":\"Basic examples - Loquiz knowledgebase\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/loquiz.com\\\/support\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/show-all-tasks-on-map.png\",\"datePublished\":\"2020-04-09T06:59:17+00:00\",\"dateModified\":\"2021-07-02T14:12:09+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#\\\/schema\\\/person\\\/146baa991dc15587d39906934da45dc7\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/#primaryimage\",\"url\":\"https:\\\/\\\/loquiz.com\\\/support\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/show-all-tasks-on-map.png\",\"contentUrl\":\"https:\\\/\\\/loquiz.com\\\/support\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/show-all-tasks-on-map.png\",\"width\":769,\"height\":151,\"caption\":\"Show all tasks on the map\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/basic-examples\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/loquiz.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Basic examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/loquiz.com\\\/support\\\/\",\"name\":\"Loquiz knowledgebase\",\"description\":\"Helping you run awesome games\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/loquiz.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#\\\/schema\\\/person\\\/146baa991dc15587d39906934da45dc7\",\"name\":\"Eric\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g\",\"caption\":\"Eric\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Basic examples - Loquiz knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/loquiz.com\/support\/basic-examples\/","og_locale":"en_US","og_type":"article","og_title":"Basic examples - Loquiz knowledgebase","og_description":"Below are some basic examples for Creator logic.","og_url":"https:\/\/loquiz.com\/support\/basic-examples\/","og_site_name":"Loquiz knowledgebase","article_published_time":"2020-04-09T06:59:17+00:00","article_modified_time":"2021-07-02T14:12:09+00:00","og_image":[{"url":"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/show-all-tasks-on-map.png","type":"","width":"","height":""}],"author":"Eric","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Eric","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/loquiz.com\/support\/basic-examples\/#article","isPartOf":{"@id":"https:\/\/loquiz.com\/support\/basic-examples\/"},"author":{"name":"Eric","@id":"https:\/\/loquiz.com\/support\/#\/schema\/person\/146baa991dc15587d39906934da45dc7"},"headline":"Basic examples","datePublished":"2020-04-09T06:59:17+00:00","dateModified":"2021-07-02T14:12:09+00:00","mainEntityOfPage":{"@id":"https:\/\/loquiz.com\/support\/basic-examples\/"},"wordCount":272,"image":{"@id":"https:\/\/loquiz.com\/support\/basic-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/show-all-tasks-on-map.png","articleSection":["4. Creating Games"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/loquiz.com\/support\/basic-examples\/","url":"https:\/\/loquiz.com\/support\/basic-examples\/","name":"Basic examples - Loquiz knowledgebase","isPartOf":{"@id":"https:\/\/loquiz.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/loquiz.com\/support\/basic-examples\/#primaryimage"},"image":{"@id":"https:\/\/loquiz.com\/support\/basic-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/show-all-tasks-on-map.png","datePublished":"2020-04-09T06:59:17+00:00","dateModified":"2021-07-02T14:12:09+00:00","author":{"@id":"https:\/\/loquiz.com\/support\/#\/schema\/person\/146baa991dc15587d39906934da45dc7"},"breadcrumb":{"@id":"https:\/\/loquiz.com\/support\/basic-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/loquiz.com\/support\/basic-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/loquiz.com\/support\/basic-examples\/#primaryimage","url":"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/show-all-tasks-on-map.png","contentUrl":"https:\/\/loquiz.com\/support\/wp-content\/uploads\/2020\/04\/show-all-tasks-on-map.png","width":769,"height":151,"caption":"Show all tasks on the map"},{"@type":"BreadcrumbList","@id":"https:\/\/loquiz.com\/support\/basic-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/loquiz.com\/support\/"},{"@type":"ListItem","position":2,"name":"Basic examples"}]},{"@type":"WebSite","@id":"https:\/\/loquiz.com\/support\/#website","url":"https:\/\/loquiz.com\/support\/","name":"Loquiz knowledgebase","description":"Helping you run awesome games","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/loquiz.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/loquiz.com\/support\/#\/schema\/person\/146baa991dc15587d39906934da45dc7","name":"Eric","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a1e259c3c8e8b2207b5c23cb8d985fdf416d68c8b2854f582c0a0f89b81b6eba?s=96&d=mm&r=g","caption":"Eric"}}]}},"_links":{"self":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts\/2081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/comments?post=2081"}],"version-history":[{"count":4,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts\/2081\/revisions"}],"predecessor-version":[{"id":8554,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts\/2081\/revisions\/8554"}],"wp:attachment":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/media?parent=2081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/categories?post=2081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/tags?post=2081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}