PoA_PRC8/_module/nss/nwnx_ruby.nss
Jaysyn904 ce72b8d120 Updated for NWNEE 37-13
Updated for NWNEE 37-13.  Updated NWNxEE scripts.  CODI Core AI tweaks.  Added Diamond Golem AI.  Full compile.  Updated release archive.
2025-01-10 19:01:12 -05:00

21 lines
474 B
Plaintext

/// @addtogroup ruby Ruby
/// @brief Allows users to execute arbitrary Ruby from the game.
/// @{
/// @file nwnx_ruby.nss
const string NWNX_Ruby = "NWNX_Ruby"; ///< @private
string NWNX_Ruby_Evaluate(string sCode);
/// @brief Evaluates some ruby code.
/// @param sCode The code to evaluate.
/// @return The output of the call.
string NWNX_Ruby_Evaluate(string sCode)
{
NWNXPushString(sCode);
NWNXCall(NWNX_Ruby, "Evaluate");
return NWNXPopString();
}
/// @}