This is the most up to date stable release!

Release Notes

This release has breaking changes with expression!!!

Removed the Word Get from all the expression, this was redundant and just made the expressions longer to type (sorry!)

I have also fixed some spelling typos in some of the descriptions,

and I have added a few new actions and expression to assist with the saving and loading of map

  • ACTION - Download map as JSON file
  • ACTION - Load Map JSON to TileMap
  • ACTION - Load Map JSON to Memory
  • EXPRESSION - As Json (returns current map as JSON string)

the example project has been update to work, with all the new expressions and i also added examples of loading and savingthe map

ACES

A list of all Actions, Conditions and Expressions supported in this addon.

Custom

  • Actions

    Set {0} As Seed

    The seed for Rot.js

    Debug

    Prints plugin information to the browser console

    Generate Arena {0}x{1} On Tilemap {2}

    Generate Arena Map

    Generate Divided Maze {0}x{1} On Tilemap {2}

    Generate Divided Maze

    Generate Icey Maze {0}x{1} On Tilemap {3} With Regularity of {2}

    Generate Icey Maze

    Generate Eller Perfect Maze {0}x{1} On Tilemap {2}

    Generate Eller Perfect Maze (every two cells are connected by exactly one path)

    Generate Cellular Automata {0}x{1} On Tilemap {5} with Randomize ({2}), {3} Iterations, {4}

    Generate Cellular Automata

    Generate Cellular Automata {0}x{1} On Tilemap {7} with Randomize ({2}), {5} Iterations, {6}, Born [{3}], Survive [{4}]

    Generate Cellular Automata Advanced

    Generate Dungeon (Digger) {0}x{1} On Tilemap {10}, RoomWidth [{2},{3}] RoomHeight [{4},{5}], CooridorLength [{6},{7}], Dug% {8}, TimeOut {9} milliseconds

    Generate Dungeon (Digger), Random dungeon generator using human-like digging patterns; based on Mike Anderson's ideas from the "Tyrant" algo

    Generate Dungeon (Digger) {0}x{1} On Tilemap {2}

    Generate Dungeon (Digger), Random dungeon generator using human-like digging patterns; based on Mike Anderson's ideas from the "Tyrant" algo

    Generate Dungeon (Uniform) {0}x{1} On Tilemap {8}, RoomWidth [{2},{3}] RoomHeight [{4},{5}], Dug% {6}, TimeOut {7} milliseconds

    Generate Dungeon (Uniform), Generate Dungeon (Uniform), Generates a set of rooms; tries to connect them afterwards

    Generate Dungeon (Uniform) {0}x{1} On Tilemap {2}

    Generate Dungeon (Uniform), Generates a set of rooms; tries to connect them afterwards

    Generate Dungeon (Rogue) {0}x{1} On Tilemap {2}

    Generate Dungeon (Rogue), The original Rogue dungeon algorithm, NOTE: no room or cooridor information will be availble with this dungeon type.

    Download Map as JSON

    Downloads the map as JSON

    Load Map JSON {0} To Tilemap {1}

    Load Map JSON To Tilemap

    Load Map From JSON {0}

    Load Map From JSON

  • Conditions

    For Each Room

    Loop over all rooms

    For Each Doors

    Loop over all doors

    For Each Cell

    Loop over all cell

    For Each Cell In Room {0}

    Loop over all cells in room

    For Each Floor Cell

    Loop over all floor cell

    Any Map Generated

    Triggered when any map is generated

    Arena Generated

    Triggered when an arena is generated

    Maze Generated

    Triggered when a maze is generated

    Celluar Automata Generated

    Triggered when a cellular automata is generated

    Dungeon Generated

    Triggered when a dungeon is generated

    Rogue Dungeon Generated

    Triggered when a rogue dungeon is generated

    Current Cell is Floor

    Checks if the current cell in loop is floor

    Cell at ({0},{1}) is Floor

    Checks if the cell is floor

    Current Cell is Wall

    Checks if the current cell in loop is wall

    Cell at ({0},{1}) is Wall

    Checks if the cell is wall

    Current Cell is in Room

    Checks if the current cell in loop is in a room

    Cell ({0},{1}) is in Room

    Checks if the cell is in a room

    Current Cell is Cooridor

    Checks if the current cell in loop is a cooridor

    Cell ({0},{1}) is Cooridor

    Checks if the cell is in a cooridor

  • Expressions

    Seed

    Get Seed

    GetUniform

    Get float [0-1] with uniform distribution

    GetNormal

    random number with normal distribution

    GetPercent

    Get integer [0-100]

    GetWeighted

    Get Weighted Value

    RoomCount

    Get number of rooms in dungeon

    CurRoomIndex

    The current rooms index

    CurRoomHeight

    The current rooms height

    CurRoomWidth

    The current rooms width

    CurRoomTop

    The current rooms top coordinate

    CurRoomBottom

    The current rooms bottom coordinate

    CurRoomRight

    The current rooms right coordinate

    CurRoomLeft

    The current rooms left coordinate

    CurRoomCenterX

    The current rooms center x coordinate

    CurRoomCenterY

    The current rooms center y coordinate

    CurRoomDoorCount

    the current rooms amount of doors

    CurRoomFreeCellCount

    the current rooms amoutn of non wall cells

    RoomHeight

    The rooms height

    RoomWidth

    The rooms width

    RoomTop

    The rooms top coordinate

    RoomBottom

    The rooms bottom coordinate

    RoomRight

    The rooms right coordinate

    RoomLeft

    The rooms left coordinate

    RoomCenterX

    The rooms center x coordinate

    RoomCenterY

    The rooms center y coordinate

    RoomDoorCount

    the rooms amount of doors

    RoomFreeCellCount

    the rooms amount of non wall cells

    CurDoorRoomIndex

    The Current Doors room index

    CurDoorX

    The Current Doors center x coordinate

    CurDoorY

    The Current Doors center y coordinate

    DoorRoomIndex

    The Doors room index

    DoorX

    The Doors center x coordinate

    DoorY

    The Doors center y coordinate

    CurCellX

    The Current Cell x coordinate

    CurCellY

    The Current Cell y coordinate

    CurCellValue

    The Current Cell Value

    CellValue

    The Cell Value

    CurCellType

    The Current Cell Type

    CellType

    The Cell Type

    AsJson

    Get Map Data as Json String

Share