Original Source
- Original title: Odd Issue When Eventing A Scrolling Adventure Log - PLEASE HELP!
- Original author: ZombieKidzRule
- Original date: January 20, 2025
- Source thread: https://forums.rpgmakerweb.com/threads/odd-issue-when-eventing-a-scrolling-adventure-log-please-help.174837/
- Source forum path: Game Development Engines > RPG Maker MZ Support
Summary
Ok, so Zombie is at his wits end and this is killing me for a 2nd time. I have been struggling with this for days and I have tried everything I can think of to figure out what is going wrong. I have finally narrowed down to WHAT seems to be happening, but I can't figure out WHY it is happening. I must be missing something obvious that I just can't see. I am going to make this post shorter by using SPOILERS for all the screenshots. I apologize for...
Archived First Post
I am going to make this post shorter by using SPOILERS for all the screenshots. I apologize for how many screenshots there are.
What is supposed to be happening?
I have a Parallel Map Event that is adding string Text to an Array that is storing Messages for a scrolling Adventure Log. I have a Parallel Common Event that is displaying the Messages from the Adventure Log Array on the screen. The Array should never get longer than 14 Messages. So, I am removing the Array element at Position 0 when I need to add a new Message to the end of the Array after the Array has 14 elements. So, I remove the first Message and then add a new Message at the end.
After many mistakes in design and then troubleshooting, (dumb Zombie) everything seems to be working fine except in 2 specific spots of the Map Event. Those spots don't seem to be any different from other parts of the Event and the behavior is consistent with every test.
Some things in the Events probably seem unnecessary, but they are remnants of me trying to figure out what is going on and trying to fix the problem. I also have another Common Event to display the scrolling Adventure Log that is designed differently and it ends up having the exact same problems in the exact same spot. So I believe the issue is in the Map Event somehow.
Anyway, I would GREATLY appreciate anyone who takes the time to read this, look through the screenshots, and who can offer advice. Here come the SPOILERS. THANKS in advance! Urgh...Argh!
- Is the an error in the Event Commands or with the logic that is causing this problem? If so, what?
- If there doesn't seem to be any errors, WHY is this happening?
- Can you suggest a different/easier/better way to Event this? If so, can you please show me?
- Is there a plugin that you would suggest to do the same thing to just show a scrolling log of whatever text I want?
This works fine multiple times before the problem manifests. In this screenshot you can see the Variable values of a Message that matches the last Message displayed in the log ("Gale takes 15 damage!" and you can see it through the Show Text Window) and then 13 (Array Position) / 14 Array Length.
Protected download
In this screenshot you can see that the Message from the Array is 0 (empty - nothing in that Position), 13 for the Array Position, and 13 for the Array Length. So it is trying to pull an element from the Array that doesn't exit. But you can see in the Adventure Log display that a Message does get show ("Gale is Burned!") with a blank space that would have shown "0" except I made it so the Common Event wouldn't show the 0. So, it seems like the element at Position 0 in the Array is being removed to reduce the length of the Array to 13 instead of 14, but the script that pushes the new Message to the Array is happening, but the length of the array is still 13 when the Show Text Command happens and it should be 14.
Protected download
Then it seems to fix itself.
Protected download
Then it happens again.
Protected downloadThen it fixes itself again.
Protected download
Protected download
Protected downloadProtected downloadProtected downloadProtected downloadProtected downloadProtected downloadProtected downloadProtected downloadProtected downloadProtected downloadProtected downloadProtected downloadProtected download
Protected downloadProtected downloadProtected downloadProtected downloadProtected downloadProtected downloadProtected download
The part about Erasing Picture #6 was my fix to make it so the "0" wouldn't be shown in the Adventure Log display. But if someone can figure out why that "0" value is happening in the first place, then that part of the Common Event shouldn't be necessary.
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...