CaravelGames / drod

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

Add script vars to access player weapon and inputs #594

Closed Hypexion closed 3 months ago

Hypexion commented 4 months ago

New script vars to access some more bits of information:

The two input commands required a new member variable in CCurrentGame, which is set by ProcessCommand. It should not need to be serialized, as its only purpose to allow the access during script processing, which can only happen as part of command processing.

Thread 1: https://forum.caravelgames.com/viewtopic.php?TopicID=46100 Thread 2: https://forum.caravelgames.com/viewtopic.php?TopicID=46142