ss-scene-flags

1.0.1 • Public • Published

JS Scene Flags

JS Scene Flags is a JavaScript library for dealing with scene flags in Skyward Sword.

Installation

Use the package manager npm to install foobar. Note: The name is slightly different on npm.

npm install ss-scene-flags

Usage

const {flagToEvent, getBiTInfo, lookupFlag} = require('ss-scene-flags');

// returns "Door from Hylia's Temple to Hylia's Realm is unlocked"
flagToEvent('7x04','sealed grounds')

/* returns
[
  'Skyloft: Open Shed Door at Night',
  "Sealed Grounds: Checked Hylia's Realm Statue",
  'Sky: Talk to Lumpy Pumpkin Barkeep',
  'Faron Woods: Heart Piece behind Rocks',
  'Lake Floria: Lake Floria Waterfall Statue Checked'
] */
getBiTInfo('5x02')

/* (true is whether or not it should return the flag action as well) returns 
[
  '0x08: Box is pushed up against wall (can be unset)',
  '5x02: Open Shed Door at Night'
] */
lookupFlag('shed','skyloft',true)

Package Sidebar

Install

npm i ss-scene-flags

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

114 kB

Total Files

23

Last publish

Collaborators

  • avglink