Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Script:Backpack"

From Roll20 Wiki

Jump to: navigation, search
(Item Definitions)
(Item Definitions)
Line 28: Line 28:
 
Item definitions are a the format in which entries of items are parsed into the script. They consist of several parts.
 
Item definitions are a the format in which entries of items are parsed into the script. They consist of several parts.
 
{{syntaxbox top|item_definition|formal=true}}
 
{{syntaxbox top|item_definition|formal=true}}
{{API parameter|name=quantity|optional=true}} {{API parameter|name=name}};{{API parameter|name=type}} {{API parameter|name=weight|optional=true}} {{API parameter|name=value|optional=true}} {{API parameter|name=description|optional=true}} {{API parameter|name=use|optional=true}} {{API parameter|name=enigma|optional=true}} {{API parameter|name=maxcharge|optional=true}}<br>
+
{{API parameter|name=quantity|optional=true}} {{API parameter|name=name}};{{API parameter|name=type}} {{API parameter|name=weight|optional=true}} {{API parameter|name=value|optional=true}} {{API parameter|name=description|optional=true}} {{API parameter|name=use|optional=true}} {{API parameter|name=enigma|optional=true}} {{API parameter|name=enigma|optional=true}} <br>
 
{{Formal API command|
 
{{Formal API command|
 
{{API parameter|name=quantity|optional=true}} {{token|name}};{{token|type}} {{API parameter|name=optionals|optional=true}} <br>
 
{{API parameter|name=quantity|optional=true}} {{token|name}};{{token|type}} {{API parameter|name=optionals|optional=true}} <br>

Revision as of 23:21, 25 June 2015

API Script Author: Ken L.
Version: 1.25
Last Modified: 2015-6-24
Code: NA
Dependencies: None
Conflicts: Unknown

Contents

Backpack is a journal based inventory system that updates the 'bio' section of a journal to represent a graphic inventory interface. This allows GMs whom implement this script to allow players to manage a graphic representation of their inventory. Once setup, you can move, give, drop, and pickup items through the use of the API button interface as well as buy and sell from shops and stores should they be prepared.

To use this script requires quite a bit of setup on the part of the GM preparing the asset and item databases. The asset database is simply a list of available item types/subtypes and their associated images. The item database is a list of parsable item signatures which can be short hand written to loot drop handouts or any backpack compatible journal entry.


Getting Started

Once you load the backpack.js and backpack_tmp.js scripts into your campaign, you'll need to at least create an asset database.

After creating an asset database, you're ready to populate backpack compatible journal entries as inventories, stores, or loot cache drops.

General Use

TODO

Item Definitions

Item definitions are a the format in which entries of items are parsed into the script. They consist of several parts.

[quantity] <name>;<type> [weight] [value] [description] [use] [enigma] [enigma]
Formally:

[quantity] name

type
[optionals] 

[quantity] name

type
subtype
[optionals] 


type

→ Existing type in backpack_tmp.js

sybtype

→ Existing subtype defined in the asset database

Asset Database

The asset database is a journal entry that contains within its gmnotes section the library of images to be used for item definitions

The asset database has a simple format where each line is a single asset entry (blank lines between groups of entries are fine).

Each asset entry is in either of the following formats:

Type:Link
Type:Subtype:Link
Formally:

type

subtype
link


type

link



type

→ Existing type in backpack_tmp.js

sybtype

→ Anything except ε

link

→ HTML link to the image source, must start with 'http' case insensitive

Item Database

TODO

Customizing

TODO

Changelog

TODO