Frustrating issue with specific item's pick-up message
Asyranok
28 Feb 2013, 03:04Hi guys,
I have dozens of items that can be picked up in my game, yet only one item is causing me headaches. I have a journal in my first scene, that when the user takes it, a double message appears. The game tries to take it twice. Not only that, but it posts the item's name automatically in front of the "take" message.
This is the result when the player picks up the journal.
This is what it SHOULD say,
I have quadruple-checked and nothing is different between this item and other items that the player can pick up. But when I pick up a cell phone, it says "You pick up the cell phone." and doesn't hurl a bunch of extra unnecessary text at the player. I've gone through the code and there is no code that would logically cause the game to try to pick the item up twice in one go. Not only that, but I tried deleting the item, and making a new one. The new item also has this problem. Yet I can make an unrelated item and it will not encounter this issue. This is really frustrating.
I've attacked my .aslx for reference. The issue must be incredibly simple, but I do not see it. Any help would be greatly appreciated.
Walkthrough:
1. Start game and click through short sequence of story set-up and dialogue
2. In Hyper-stasis room, "Look" at broken stasis pod
3. Journal will appear as visible - Called, "old, deteriorating journal."
I have dozens of items that can be picked up in my game, yet only one item is causing me headaches. I have a journal in my first scene, that when the user takes it, a double message appears. The game tries to take it twice. Not only that, but it posts the item's name automatically in front of the "take" message.
This is the result when the player picks up the journal.
> take Old, deteriorating journal
Old, deteriorating journal: You take the old journal. Pieces of it crumble off in your hand.
Old, deteriorating journal: You are already carrying it.
This is what it SHOULD say,
> take Old, deteriorating journal
You take the old journal. Pieces of it crumble off in your hand.
I have quadruple-checked and nothing is different between this item and other items that the player can pick up. But when I pick up a cell phone, it says "You pick up the cell phone." and doesn't hurl a bunch of extra unnecessary text at the player. I've gone through the code and there is no code that would logically cause the game to try to pick the item up twice in one go. Not only that, but I tried deleting the item, and making a new one. The new item also has this problem. Yet I can make an unrelated item and it will not encounter this issue. This is really frustrating.
I've attacked my .aslx for reference. The issue must be incredibly simple, but I do not see it. Any help would be greatly appreciated.
Walkthrough:
1. Start game and click through short sequence of story set-up and dialogue
2. In Hyper-stasis room, "Look" at broken stasis pod
3. Journal will appear as visible - Called, "old, deteriorating journal."
Sora574
28 Feb 2013, 03:20The problem isn't with your game file.
The problem is coded into Quest.
Basically, when you use the command 'take Old, deteriorating journal' Quest reads it as 'take Old' and 'take deteriorating journal', making them 2 different objects.
However, since the name of the object is 'Old, deteriorating journal', it reads both commands as taking the same object.
So basically, it's the comma.
Does that make sense?...
The problem is coded into Quest.
Basically, when you use the command 'take Old, deteriorating journal' Quest reads it as 'take Old' and 'take deteriorating journal', making them 2 different objects.
However, since the name of the object is 'Old, deteriorating journal', it reads both commands as taking the same object.
So basically, it's the comma.
Does that make sense?...
Asyranok
28 Feb 2013, 03:33NICE. Yes, that makes perfect sense. Thanks for the help!
Sora574
28 Feb 2013, 04:00No problem, glad I could help.
Good luck with the game!
Good luck with the game!