But yeah, I'm up to actually editing in the changes for the "Alchemy" portion of my mod, and this is all I can think about. It's, like, driving me crazy. And working on this update has already made me plenty crazy enough.
if ( player->GetSoundPlaying "drink" );didn't workendif
if ( player->GetSoundPlaying "drink" );didn't workendif
ifx ( invref ) ;continue through the list setx invid invcount invtype invvalue invweight invname invref to pcref->xContentList invrefelse ;get the first item setx invid invcount invtype invvalue invweight invname invref to pcref->xContentList 0endifif ( invref == 0 ) ;means we are at end of list ;terminate script or loop Returnendif
ifx ( invref ) ;continue through the list setx invid invcount invtype invvalue invweight invname invref to pcref->xContentList invrefelse ;get the first item setx invid invcount invtype invvalue invweight invname invref to pcref->xContentList 0endifif ( term == 1 ) ;terminate script or loop Returnendifif ( invref == 0 ) ;means we are at end of list set term to 1endif
ifx ( doProcess ) ifx ( invref ) ;get next item in inventory list setx invid invcount invtype invvalue invweight invname invref to pcRef->xContentList invref else ; get first inventory item setx invid invcount invtype invvalue invweight invname invref to pcRef->xContentList 0 endif set cpt to ( cpt + 1 ) ; save only potion items set temp to ( invtype - 1212369985 ) ifx ( temp ) else ;add number of potions by ref set count to ( count + invcount ) endif ifx ( invref ) ;there is another item in inventory return endifendif