CaravelGames / drod

The official public repository of Deadly Rooms of Death and DROD RPG
http://caravelgames.com
56 stars 17 forks source link

RPG: Additional Scripting Features #482

Closed Hypexion closed 1 year ago

Hypexion commented 1 year ago

Introduction

This is a group of new scripting features for RPG.

Pre-defined vars

New vars to access various game state information

_RoomX, _RoomY: The position of the current room relative to the level entrance (read-only) _LevelMultiplier: Read-only access to the current level's base multiplier value _MyDescription: A NPC variable to allow additional tooltip content (Thread)

Behaviour

A new NPC behaviour

Removes Sword - Equipment behaviour that causes the player not to have a sword. (Thread)

Custom processing sequence

All the stuff has been plumbed in to allow NPCs to have a custom processing sequence. Doesn't effect the order equipment scripts get run because those are run in a special way.