Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Event-based party switching bug

I developed an event based system for having four characters- but rather than all in one party, works like 4 different parties, but also makes placeholder events relocate to the others current position.  Here's a demo of what I mean-

http://www.mediafire.com/?4pmpjmkjpex

There seems to be a bug- it works great while all 4 are on the same map, but once I move two to a different map, it only toggles between those on the current map.  I'd like to consider myself an eventing veteran, but it looks like I don't deserve that title because I've looked at this for 3 days and still not found the problem.  I'm thinking it has to be something simple I'm just overlooking.

I would have used screenshots, but theres a lot of event code going on (spans 7 different events per map... so...) so I thought it would be best to just upload it and let you poke around.

If anyone can help me, this is the building block for my project.  If there's an existing script somewhere that would simplify things, let me know- but understand that i need the inventory switching and unique-per-map placeholders intact as they are critical to my project.

Thanks in advance.

P.S. if you want any of the art, or code snipits from the project, feel free to use them, just make sure you credit SephSpawn for the two that he made.
 
Hmmm... I'm not entirely sure of what is causing the bug, but I've done the following and it seems to have fixed it: Set the event that switches the party as a common event set in parallel process instead of having a different one for every map, or else rmxp will try to run the two events simultaneously when you have teleported. Also, try and extend the waiting period after the teleport, or else the player might still be holding down the L key and the event will run itself again.

By the by, great idea man. If you pull it off right, with the correct amount of different party interactions and team work, this will make your project stand out and above the rest.
 
With a couple slight adjustments I got it working.  I was under the impression I couldn't move a map event from a common event (which would break my placeholders...) but I guess we learn something new every day.  Thanks for your help, greatly appreciated.

And looking forward to your review on the final project ;)

[Topic has been resolved.  Feel free to close.]
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top