stardew-event-scripter
v1.0.7
Published
A javascript library to let you make Stardew Valley events in javascript.
Downloads
4
Readme
stardew event scripter
A javascript library to let you make Stardew Valley events in javascript.
installation
- Get nodejs and NPM.
npm install stardew-event-scripter
usage
At least some basic JS/TS knowledge is expected
An IDE supporting intellisense is recommended, such as Visual Studio Code.
You have 3 options to import it:
const { StardewEventScripter } = require('stardew-event-scripter') const event = new StardewEventScripter( ... )
const StardewEventScripter = require('stardew-event-scripter').StardewEventScripter const event = new StardewEventScripter( ... )
const StardewEventScripter = require('stardew-event-scripter') const event = new StardewEventScripter.StardewEventScripter( ... )
The constructor has 4 arguments,
eventId: number,
musicId: 'none' | string,
cameraXY: [number, number],
starting_characters: {
name: string,
x: number,
y: number,
facing: number
}[]
All precondictions are found under
StardewEventScripter#preconditions
, and all commands underStardewEventScripter#preconditions
.If you need an example, Clint's 3 heart event can be found in
test.ts