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.

MACL Spawn_Event and delete_event problems [Resolved, thanks]

I'm having another small problem with the MACL's RGSS.Map and Event_Spawner stuff. The new one to arise revolves around the $game_map.delete_event(#) command. I was using this to permanently delete 'vehicle' events used in my XP vehicle script, but I notice with any event I delete, it re-appears when I come back to the same map later.

For instance, I delete events 1, 3 and 4 on Map001, go to Map004 then come back and the 'deleted' events have re-appeared! I needed these events removed permanently.

Or, I'll spawn an event on Map004, leave and come back and the spawned vehicle event doesn't save either, unless I use Event_Spawner.end_event(true). But when I do that, not only does it save the event, but the event will remain after I go back to title and enter a new game. I can't have these remaining there either, that'll just let people cheat the game.

Can somebody in charge of the MACL fix these little issues for me? The delete_event and saving the Spawn events is very important to my system, and I can't have the events re-appearing on a new game either.
 
The delete event on works for spawned events. If you want to erase an event, use:
Code:
$game_map.events[id].erase

The save events (called when you pass true when you end an event), save from file to file. If you want, I can add a function in the next event spawner, that saves events, but does not reload them when you load a save file.

I'll fix the error on keeping saved events if you quit file 1, start file 2, and the events will be there.
 
I've figured out what went wrong, it was nothing to do with your system at all (especially now that I know '.delete_event()' is only for spawned events), it had something to do with a blank return within a child method called in the Vehicle.exit method.

The events are saving and loading fine too, however there still is a small bug to be fixed, I sent it to you via PM.

Topic closed, thanks for the help again!
 

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