Search for: Only Search Titles
Memetic API Table of Contents

Below, you will find the functions provided by the toolkit, grouped into categories. Please use thie reference material in conjunction with the developer and user documentation.

Note: All of these APIs can be viewed in printable format. You will need a PDF viewer such as the free version of Adobe Acrobat.

Download PDF Version of the API Reference Guide

Core Toolkit
Authors: Kilkonie, dlow

These are the core functions needed to schedule memetic objects and the control the system, itself. Although this contains a number of utility functions, they are essential to building memetic behaviors.

Data Structures
Authors: Kilkonie, Lucullo, dlow

The utility scripts offer a large number of functions for handling lists and variables of each datatype. These function are fundamental the use of the toolkit.

Automatic Variables
Authors: Kilkonie, Lucullo

These are additional utility functions for handling variables which decay or are destroyed after a period of time.

XML Debugging
Authors: Kilkonie

To help debug a complex system, you need useful tools. These debugging functions are used throughout the toolkit. They allow you to completely trace your scripts by writing folding-logs.

Dynamic Event Handlers
Authors: Lucullo

These functions allow you to build a set of scripts that can be dynamically bound to callbacks, like OnDeath, or OnAcquire. This allows persistant world builders to install specific sub-systems in a paritcular order.

Non-Linear Time
Authors: Lucullo

Neverwinter Nights permits time compression in a game world. As such, an NPC waiting 1 second in real time may actually need to wait 30 seconds of game time. These functions simplify how long an NPC should wait, in-game.

Class & Inheritance
Authors: Kilkonie

The toolkit provides a flexible system for allowing objects to be initialized and variables to be efficiently shared. These functions are used in conjunction with the data structure APIs.

Script Libraries
Authors: Lucullo, Kilkonie

These are functions to create script libraries. A library is a single script which may hold a number of functions, or a memetic object.

Trails & Landmarks
Authors: dlow

Trails allow NPCs to understand their surroundings and walk in logical routes. These functions allow you to initialize the system and describe information attached to each trail. Be sure to look at the memetic objects which use trails and landmarks.

Points of Interest
Authors: Kilkonie

PoI's allow dynamic creation of trigger areas. They are conventionally used to allow NPCs to observe information about their world and to allow users to be tested and notified about things they observe.

General Utilities
Authors: Kilkonie, dlow

These are other convienence functions for doing a variet of uncategorized things, like handling strings, producing colors, detecting objects, etc.

Sequence Objects
Authors: Kilkonie

Memes can be chained together to create linear sequections of actions. These functions allow to make a sequence and set up rules that explain how a sequence should be handled if interrupted or resumed.

Generator Objects
Authors: Kilkonie

Generators are dynamic callbacks, bound to the senses of an NPC. These functions allow you to create and manage these memetic objects.

Meme Objects
Authors: Kilkonie

Memes represent the behavior that an NPC would like to perform. They are the foundation of the behavioral toolkit. These functions allow you to create and manage these memetic objects.

Event Objects
Authors: Kilkonie

Events are flexible message handling device used to allow one NPC or a group of NPCS to react to signal. They are similar to Neverwinter Night's OnUserDefined callback. These functions allow you define events and describe when an event is triggered, among other things.