Skip to content
This repository was archived by the owner on Sep 24, 2022. It is now read-only.
Satakun Utama edited this page May 20, 2021 · 6 revisions

This Wiki page will guide you through the basics of StoryScript.

Types

In StoryScript, Currently, there are 8 types of data. (On a Python Interpreter)

  1. Boolean (True, False value)
  2. Integer (Full number value)
  3. Float (Non-full number, Like 3.14)
  4. List
  5. Dictionary (A List of "Key:Value" pair of data)
  6. Tuple (An Unmodifiable version of List)
  7. Dynamic (A Type that can be any type)
  8. String (a Message)

Abbreviations

This will list all the Abbreviations used to Declaring a Variable for each keyword.

  1. Boolean | bool
  2. Integer | int
  3. Float | float
  4. List | list
  5. Dictionary | dictionary
  6. Tuple | tuple
  7. Dynamic | dynamic
  8. String | string

Variables

To declare a variable, You do it like this:

type name = value

You can't use a Variable name starting with numbers. like 1122uwu For example, If you wanted to declare an Integer, You could do:

int owo = 5

Or use the var keyword. This will detect the type. And you can't assign 3.14 to Integer. Or else It will throw an Error.

Clone this wiki locally