1.0.7 • Published 7 months ago

stardew-event-scripter v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

stardew event scripter

A javascript library to let you make Stardew Valley events in javascript.

installation

  1. Get nodejs and NPM.
  2. npm install stardew-event-scripter

usage

At least some basic JS/TS knowledge is expected

  1. An IDE supporting intellisense is recommended, such as Visual Studio Code.
  2. You have 3 options to import it:

    1. const { StardewEventScripter } = require('stardew-event-scripter')
      
      const event = new StardewEventScripter( ... )
    2. const StardewEventScripter = require('stardew-event-scripter').StardewEventScripter
      
      const event = new StardewEventScripter( ... )
    3. const StardewEventScripter = require('stardew-event-scripter')
      
      const event = new StardewEventScripter.StardewEventScripter( ... )
  3. The constructor has 4 arguments,

       eventId: number,
       musicId: 'none' | string,
       cameraXY: [number, number],
       starting_characters: {
           name: string,
           x: number,
           y: number,
           facing: number
       }[]
4. All precondictions are found under `StardewEventScripter#preconditions`, and all commands under `StardewEventScripter#preconditions`. 

5. If you need an example, Clint's 3 heart event can be found in [`test.ts`](/test.ts)
1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago