Page 1 of 1
What is CMD to an NPC take the item?
Posted: Thu Jun 18, 2009 9:44 am
by bround
What is CMD to an NPC take the item?
Also, what do Data1, Data2, Data3, and Data4 do with CMD?
Posted: Thu Jun 18, 2009 11:00 am
by cbloopy
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.
Posted: Thu Jun 18, 2009 7:45 pm
by bround
I knew that already! But I need CMD to an NPC take won of your items without move.. I'll look in adventures if i dont get help.
Posted: Thu Jun 18, 2009 8:24 pm
by cbloopy
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.
Posted: Fri Jun 19, 2009 9:18 am
by bround
FN 5? Ok. but how to do player got the message (4) then that item is in your bucket. and then message (2) then its not in your bucket? Also ID?
Posted: Sun Jun 21, 2009 7:57 pm
by cbloopy
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.
Posted: Mon Jun 22, 2009 12:19 pm
by bround
Thanks! Now I know it. Thanks!!
EDIT: I been. but the item been not take.
Posted: Mon Jun 22, 2009 6:44 pm
by cbloopy
Make sure you set an ID for the item. That ID shouldn't be -1 for example.
If it's still not working, PM me your level and dialog files and I'll take a look.
Posted: Tue Jun 23, 2009 12:32 pm
by bround
Data is FN ID. And FNC need to be 5.
Posted: Tue Jun 23, 2009 6:31 pm
by cbloopy
bround wrote:Data is FN ID. And FNC need to be 5.
Hmm, I see your confusion.
A custom item's "Fn ID" is
not the same as its "ID". To use here you need to set the item's "ID" (
not "Fn ID") to match with the Data you use for FNC 5.
Posted: Tue Jun 23, 2009 8:07 pm
by bround
I knew it! I mean, ID is not the FN ID. all of custom items have a FN ID.
Well, there a test adventure....
Posted: Wed Jul 29, 2009 4:02 am
by LittleZbot
What if you WANT a Item from a NPC?
Posted: Wed Jul 29, 2009 12:56 pm
by bround
LittleZbot wrote:What if you WANT a Item from a NPC?
CMD: 1
Dat1: Item ID
Dat2: 0
Dat3: 0
Dat4: 0
Posted: Fri Jul 31, 2009 9:13 pm
by LittleZbot
Thank you.
Hey, what if you want to deactivate gates by pressing an answer to a dialog? Gates don't have ID!
Posted: Fri Jul 31, 2009 9:21 pm
by DEEMAN223344
Posted: Fri Jul 31, 2009 10:23 pm
by LittleZbot
What if you want different answers to open different gates?
Posted: Fri Jul 31, 2009 11:32 pm
by Qloof234
No it isn't, not exactly.
The formula for a gate's ID is:
500 + (5*color value of gate)
and for subcolours:
500 + (5*color value of gate) + (subcolour number (1-4))
Posted: Sat Aug 01, 2009 1:07 am
by DEEMAN223344
oops! i was in a hurry!
Posted: Sat Aug 01, 2009 1:18 am
by LittleZbot
What's the '*5 color value of the gate?'
Posted: Sat Aug 01, 2009 1:20 am
by DEEMAN223344
LittleZbot wrote:What's the '*5 color value of the gate?'
the way to deactvate a gate is: the color value of the gate times 5, + 500
Posted: Sat Aug 01, 2009 2:41 am
by LittleZbot
Thank you all.
Posted: Wed Aug 05, 2009 11:32 pm
by gameboy991
Uh, CAN SOMEONE SPIT THIS OUT IN ACTUAL ENGLISH AND NOT ALL THESE NUMBERS AND SYMBOLS AND LETTERS!?!?!?!?!?!?!?!?
Posted: Wed Aug 05, 2009 11:37 pm
by maxnick
Sorry thats in the realm of physical imossibilty!

Posted: Thu Aug 06, 2009 12:00 am
by gameboy991
Posted: Thu Aug 06, 2009 7:29 am
by bround
gameboy991 wrote:Uh, CAN SOMEONE SPIT THIS OUT IN ACTUAL ENGLISH AND NOT ALL THESE NUMBERS AND SYMBOLS AND LETTERS!?!?!?!?!?!?!?!?
Um, In editor, its NUMBERS!!!!!!!!