Custom Scripts ~ Goal - uchicago-cs/chiventure GitHub Wiki
The goal for the Custom Scripts module is an independent module is comprised of methods that allows for special actions linked to individual objects, inventory items and locations, or conditions associated to the player, such as health, number of coins, level. Our goal over this quarter to to attempt to find the most efficient way to integrate Custom scripts into Chiventure as to make it as simple as possible to integrate special actions when designing levels.
The Ultimate Goal is to make it so that it is to make a more dynamic experience for the player and the author of a Chiventure game. Examples of techniques use to make Chiventure more dynamic can be found in the "demo_2022.c" file within the custom scripts folder.
Attached are the pros and cons determined by the custom-scripts team in regards to building upon the legacy-code from the last time this code was worked on approximately two years ago. Our team has decided to build upon this infrastructure so that we may implement more advanced and creative scripts to be incorporated into Chiventure.
Moving forward, the goal of future custom scripts teams should be to integrate Lua function calls into the WDL, so that Chiventure does not have to be run from a .c file to integrate Lua. An infrastructure for using Lua with Chiventure has already been built by the custom script team, so future teams will simply have to decide how to best implement and parse Lua function calls into the WDL itself.