Jump to content

jornik

Members
  • Posts

    20
  • Credits

  • 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...