What is CMD to an NPC take the item?
What is CMD to an NPC take the item?
What is CMD to an NPC take the item?
Also, what do Data1, Data2, Data3, and Data4 do with CMD?
Also, what do Data1, Data2, Data3, and Data4 do with CMD?
Avid TTR player and TTS developer, a new revolutionary server in works.
No such CMD exists. The only way to *simulate* an NPC taking an item is to issue an NPC Move CMD (61) to move to or past the item, and ensure that right before the NPC reaches the item, the NPC steps on a general command button to deactivate or destroy the item.
For details on documented CMDs see Midnight Synergy's Editor reference.
For details on NPC CMDs see this post.
For details on documented CMDs see Midnight Synergy's Editor reference.
For details on NPC CMDs see this post.
Your question was very confusing then, since it sounded like you want an NPC to pick up an item from the level, not to take away an item you already picked up. If you want an NPC to take away something from your inventory, you'll need to use dialog to do so:
http://www.midnightsynergy.com/adventur ... orial5.htm
See the table in the middle of the dialog tutorial, the row that has FN 5.
http://www.midnightsynergy.com/adventur ... orial5.htm
See the table in the middle of the dialog tutorial, the row that has FN 5.
Have you ever create a "shopping" dialog? You know, one where the merchant offers a number of things for sale, and if you have enough coins, the merchant will activate the item for you to pick up on the level and take away the number of coins from you? That's Fn 4.
Fn 5 is the same idea except that instead of number of coins, you specify the ID of the item to take away. The item that the player picks up must have an ID so that Fn 5 works. Here's an example:
Say player picks up a custom item with ID=1.
Dialog with some NPC:
interchange 0: Do you have the item?
answer 0: Yes.
Fn 5 FnData 1
interchange 1: Um, you don't actually have the item.
answer 0: Oops
Fn 1 FnData 0
interchange 2: Cool, thanks for the item.
answer 0: You're welcome
Fn 1 FnData 2.
If you start the dialog w/o an item with ID=1, then the Fn 5 will bring you to interchange 1. If you start the dialog w/ the item, then Fn 5 will skip ahead to interchange 2, and the item will be taken away from your inventory.
Fn 5 is the same idea except that instead of number of coins, you specify the ID of the item to take away. The item that the player picks up must have an ID so that Fn 5 works. Here's an example:
Say player picks up a custom item with ID=1.
Dialog with some NPC:
interchange 0: Do you have the item?
answer 0: Yes.
Fn 5 FnData 1
interchange 1: Um, you don't actually have the item.
answer 0: Oops
Fn 1 FnData 0
interchange 2: Cool, thanks for the item.
answer 0: You're welcome
Fn 1 FnData 2.
If you start the dialog w/o an item with ID=1, then the Fn 5 will bring you to interchange 1. If you start the dialog w/ the item, then Fn 5 will skip ahead to interchange 2, and the item will be taken away from your inventory.
- LittleZbot
- Rainbow MegaStar
- Posts: 3039
- Joined: Fri Jul 03, 2009 10:51 pm
- Contact:
- LittleZbot
- Rainbow MegaStar
- Posts: 3039
- Joined: Fri Jul 03, 2009 10:51 pm
- Contact:
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
- LittleZbot
- Rainbow MegaStar
- Posts: 3039
- Joined: Fri Jul 03, 2009 10:51 pm
- Contact:
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
- LittleZbot
- Rainbow MegaStar
- Posts: 3039
- Joined: Fri Jul 03, 2009 10:51 pm
- Contact:
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
- LittleZbot
- Rainbow MegaStar
- Posts: 3039
- Joined: Fri Jul 03, 2009 10:51 pm
- Contact:
- gameboy991
- Rainbow Master
- Posts: 710
- Joined: Thu Apr 09, 2009 2:44 am
- gameboy991
- Rainbow Master
- Posts: 710
- Joined: Thu Apr 09, 2009 2:44 am