Quest Editor
  • Docs Home
  • Guides
    • Creating a Quest
      • Storywriting
      • Starting Out
      • Adding Stages
      • Stage 1
      • Stage 2
      • Stage 3
    • Creating an Enemy
    • Creating a Location
      • Creation
  • Logic Blocks
    • If Block
    • Equals Block
    • And/Or Block
    • Not Block
    • Boolean Block
    • Null Block
    • Ternary Block
  • List Blocks
    • Create Empty List Block
    • Length Of List Block
    • Create List Block
    • Find Index Block
    • Is Empty Block
    • Get In List Block
    • Edit In List Block
    • Split String Block
  • Text Blocks
    • Text Block
  • Quest Blocks
    • Quest Block
    • Continue Check Block
    • Dialog Block
    • Take Item Block
    • Has Item Block
    • Option Block
    • Option Dialog Block
    • Promise Block
    • Stage Block
    • Switch Stage Block
    • Update Quest Block
    • End Quest Block
    • Start Quest Block
    • Send Message Block
    • User Inventory Block
    • NPC Block
    • Set Adventure Block
    • Remove Adventure Block
    • New Adventure Class Block
  • Item Blocks
    • Dummy Item Block
    • Weapon Item Block
    • Healing Item Block
    • Helmet Item Block
    • Chestplate Item Block
    • Boots Item Block
    • Ring Item Block
  • Import Blocks
    • Import Adventure Block
  • Enemy Blocks
    • New Enemy Block
  • Locations Blocks
    • New Location Block
    • Search Data Block
    • Travel Data Block
Powered by GitBook
On this page
  • In List Block
  • Get In List Block
  • Generated Code
  • Get In List From End Block
  • Generated Code
  • Get First In List Block
  • Generated Code
  • Get Last In List Block
  • Generated Code
  1. List Blocks

Get In List Block

PreviousIs Empty BlockNextEdit In List Block

Last updated 6 years ago

In List Block

These all apply to the get and remove and remove options aswell.

Get In List Block

The get in list block returns the item in the list with the specified index.

Generated Code

var list;

list[index];

Get In List From End Block

The get in list from end block returns the item in the list with the specified index from the end.

Generated Code

var list;

list.slice(-1)[index];

Get First In List Block

The get first in list block returns the first item in the list.

Generated Code

var list;

list[0];

Get Last In List Block

The get last in list block returns the last item in the list.

Generated Code

var list;

list.slice(-1)[0];
Get In List
Get In List From End
Get First In List
Get Last In List