Jump to content

jornik

Members
  • Posts

    20
  • Joined

  • Last visited

  • Feedback

    0%

Community Answers

  1. jornik's post in Interlude Ai.obj Function - Ownitemcount (Id>= Xxxx) was marked as the answer   
    AFAICT you have to specify all the ids and check them separately, something like this:
     
    In CREATED handler of the NPC:
    myself.int_list.Add( ID1 ); myself.int_list.Add( ID2 ); myself.int_list.Add( ID3 ); myself.int_list.Add( ID3 ); ...  And then in TALKED handler loop trough the int_list and remove all the items:
    for( i0 = 0; i0 <= myself.int_list.GetSize(); ++i0 ) { i1 = myself.int_list.Get( i0 ); if( OwnItemCount( talker, i1 ) > 0 ) { DeleteItem1( talker, i1 ); ... // do other stuff } }  Hope this helps.
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock