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
  • Edit List Blocks
  • Set In List Block
  • Generated Code
  • Set In List From End Block
  • Generated Code
  • Set First In List Block
  • Generated Code
  • Set Last In List Block
  • Generated Code
  1. List Blocks

Edit In List Block

PreviousGet In List BlockNextSplit String Block

Last updated 6 years ago

Edit List Blocks

These all apply to the insert at option aswell.

Set In List Block

The set in list block sets the item in the list with the specified index to the specified value.

Generated Code

var list;

list[index] = <value>;

Set In List From End Block

The set in list from end block sets the item in the list with the specified index from the end to the specified value.

Generated Code

var list;

list[list.length - <index>] = <value>;

Set First In List Block

The set first in list block sets the first item in the list to the specified value.

Generated Code

var list;

list[0] = <value>;

Set Last In List Block

The set last in list block sets the last item in the list to the specified value.

Generated Code

var list;

list[list.length - 1] = <value>;
Set In List
Set In List From End
Set First In List
Set Last In List