LogoPixi’VN

Navigation Quest Time Routine (NQTR)

What is NQTR?
NQTR (Navigation Quest Time Routine) is an extension for Pixi'VN that adds advanced systems for navigation, quests, time management, and game state handling. It is fully customizable and extensible, enabling developers to implement complex game mechanics with ease.

Installazione

Templates

If you are starting a new Pixi'VN project, it is recommended to use one of the templates that already include NQTR.

To install the NQTR package in an existing JavaScript project, use one of the following commands:

npm install @drincs/nqtr

Overriding OnRunProps

Some NQTR functions require you to pass an OnRunProps object as a parameter. This allows you to customize and access properties in system-triggered functions.

By default, OnRunProps is { [key: string]: any }. You can override the OnRunProps interface in your .d.ts file to specify required parameters.

import { narration } from '@drincs/pixi-vn'

declare module '@drincs/pixi-vn' {
    interface OnRunProps {
        navigate: (route: string) => void,
    }
}

Features

NQTR provides the following features (the order is important):

  1. Navigation and map
  2. Time system
  3. Activity
  4. Routine
  5. Quest system