- 0
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.
Question
khul
Hello all,
I wonder if there is a way for an npc to check if a character has an item with ID is between XXX and ZZZ, save such item ID on variable and then delete such item. Im new to AI and this is the main idea im trying to achieve.... please pardon how crude this looks...i will use @nobless_tiara just for example
Example:
EventHandler TALKED( talker, i0 ) { If (Talker.(OwnitemCount (ID>= XXX && ID <=ZZZ) >=1) >=1) { i0 = Talker.(OwnitemCount (ID>= XXX && ID <=ZZZ) >=1) myself::DeleteItem1( talker, i0, 1 ); myself::GiveItem1( talker, @nobless_tiara, 1 ); } }I'd also take on alternative ideas :)
Edited by khul2 answers to this question
Recommended Posts