neverwinter.nim icon indicating copy to clipboard operation
neverwinter.nim copied to clipboard

Script comp fails on PRC includes

Open Jaysyn904 opened this issue 1 year ago • 0 comments

The new script compiler fails when trying to compile scripts that ingest the PRC's include files.

File I'm trying to compile skny.zip

PRC include files I'm compiling against. prc_include_files.zip

Specific code it fails on:

int GetIsIncarnumUser(object oMeldshaper)
{
    return !!(GetLevelByClass(CLASS_TYPE_INCARNATE, oMeldshaper)
            || GetLevelByClass(CLASS_TYPE_SOULBORN, oMeldshaper)
            || GetLevelByClass(CLASS_TYPE_TOTEMIST, oMeldshaper)
            || GetLevelByClass(CLASS_TYPE_INCANDESCENT_CHAMPION, oMeldshaper)
            || GetHasFeat(FEAT_HEART_INCARNUM, oMeldshaper)
            || GetHasFeat(FEAT_INCARNUM_FORTIFIED_BODY, oMeldshaper)
            || GetHasFeat(FEAT_INVEST_ESSENTIA_CONV, oMeldshaper)
            || GetLevelByClass(CLASS_TYPE_SPINEMELD_WARRIOR, oMeldshaper));
}

Jaysyn904 avatar Jan 18 '24 17:01 Jaysyn904