Hello. Been a while since I've had to make a thread here, but this issue has my scripting friend stuck, so we'll require help.
Here's the situation. I'm using Galv's Use Item on Event script, as well as Tsukihime's Event Trigger Labels script. I am using both of them in a single event, which is more or less a set of 5 slots you can insert special items into to eventually complete a puzzle. I have many, many other scripts, so I'm posting the link to the project so no-one has to try and recreate the issue.
I have 'I' as the Use Item button, and 'O' as the Options button, which will show a list of available interactions for that event. If you approach the event with an item and press 'I', you can choose to use the item on it. This part works perfectly. Also, if you press 'O' and choose to Use an Item from that menu, it still works just fine. The issue occurs if you interact with the event in a different way, such as hitting Space to see the description of it, or by pressing 'O' and then choosing to examine the slots. If you do this, and then press 'I' to use the item, either the description of the slots or the options menu will appear instead, depending on what you chose to do.
We believe this issue is because the Event Trigger Labels script is expecting all areas of the event to be contained under a Trigger Label. Because the Trigger Label and and Use Item button both use :Y, the Trigger Label for :Y isn't working. The script seems to change where the event starts with each button press, so if you don't change it again with another Trigger Label, it will automatically use the previously activated one. This is our theory, anyway.
When you start the game, choose "Debug Mode', then walk over to the yellow crystal in the upper right corner to teleport to the temporary testing map. From there, go to the upper left corner, where you will see the slots and a crate containing some of the objects from the puzzle.
Thank you very much for reading, and especially if you can help solve this issue. It's been plaguing us for days now, and we don't know how to proceed with it. I'm not a coder, but he is, and even he is stuck. He said it's like my project is haunted actually, haha. Anyway, let me know if you have any questions, and I'll try to answer them as soon as I'm able. 🙂
Here's the situation. I'm using Galv's Use Item on Event script, as well as Tsukihime's Event Trigger Labels script. I am using both of them in a single event, which is more or less a set of 5 slots you can insert special items into to eventually complete a puzzle. I have many, many other scripts, so I'm posting the link to the project so no-one has to try and recreate the issue.
I have 'I' as the Use Item button, and 'O' as the Options button, which will show a list of available interactions for that event. If you approach the event with an item and press 'I', you can choose to use the item on it. This part works perfectly. Also, if you press 'O' and choose to Use an Item from that menu, it still works just fine. The issue occurs if you interact with the event in a different way, such as hitting Space to see the description of it, or by pressing 'O' and then choosing to examine the slots. If you do this, and then press 'I' to use the item, either the description of the slots or the options menu will appear instead, depending on what you chose to do.
We believe this issue is because the Event Trigger Labels script is expecting all areas of the event to be contained under a Trigger Label. Because the Trigger Label and and Use Item button both use :Y, the Trigger Label for :Y isn't working. The script seems to change where the event starts with each button press, so if you don't change it again with another Trigger Label, it will automatically use the previously activated one. This is our theory, anyway.
When you start the game, choose "Debug Mode', then walk over to the yellow crystal in the upper right corner to teleport to the temporary testing map. From there, go to the upper left corner, where you will see the slots and a crate containing some of the objects from the puzzle.
Thank you very much for reading, and especially if you can help solve this issue. It's been plaguing us for days now, and we don't know how to proceed with it. I'm not a coder, but he is, and even he is stuck. He said it's like my project is haunted actually, haha. Anyway, let me know if you have any questions, and I'll try to answer them as soon as I'm able. 🙂