Npcs selling the wrong thing.
Moderator: Developers
Npcs selling the wrong thing.
Well, I tried to buy a hatchet from Timo for 20 coins.....however, he sold me a hat for 30 coins. I tried typing it a different way and ended up with another hat. I sold one back to find I'd only get 10 coins for it. But still no hatchet. the only thing I can think of as a reason for this is that the keyword for hat is conflicting with the "hat" in hatchet. But i don't know, maybe its just something I did.
has anyone else had this problem?
has anyone else had this problem?
-
- Posts: 14
- Joined: Mon Sep 25, 2006 2:41 am
- Skaalib Drurr
- Posts: 1007
- Joined: Sat Aug 05, 2006 11:30 pm
- Location: A place which I call home......
- Estralis Seborian
- Posts: 12308
- Joined: Wed Nov 10, 2004 9:14 pm
- Location: Sir Postalot
- Contact:
- Samantha Meryadeles
- Posts: 1879
- Joined: Wed Apr 27, 2005 2:48 pm
- Contact:
Exactly what I wanted to say.Samantha Meryadeles wrote:it is not the naming, it is simply a failure in the script. the one who scripted the npc hasn't watched out. in the list of triggerst hat is before hatchet. this way when you say hatchet, he triggers already by hat. hatchet has to be first, than hat.
Basicly, I think.. that for instance, an NPC sells " a hat " and " a hatchet "
the script, in brief, in a way that whenever someone tells the NPC something, he analyzes it in this order:
- If word is "a hat" = give hat.
- end dialogue.
- If word is "a hatchet" = give hatchet.
- end dialogue.
But basicly, whenever you say "a hatchet", the NPC will react to the first part of the word. "a hat-chet".
If the script was inverted, e.g: to detect "hatchet" before "hat", I believe it would work..
But on a second thought, I doubt the developpers didn't watch out for this common mistake..
- Kevin Lightdot
- Posts: 2849
- Joined: Sun Oct 16, 2005 8:17 pm
- Location: Green again