Author Topic: [XP] Monster Event Deletion  (Read 3035 times)

Offline mad.array

  • Trained Member
  • *
  • Posts: 26
  • LV: 7
  • Gender: Male
  • Homeless Dev
    • View Profile
[XP] Monster Event Deletion
« on: March 13, 2013, 04:00:37 PM »
Monster Event Deletion
Authors: mad.array
Version: 1.0
Type: Snippet
Key Term: Misc Add-on

Introduction

Just a little fix up for a common problem in RMXP. When you erase an event just after a battle, it always appears for a frame before being deleted. WELL NO MORE! With this script you can erase specific events during the battle scene and they will be gone as soon as the battle is over. Please note that you should still set a switch or something else to make sure they don't come back when you re-enter the map though!

Features

  • Monsters be-gone!
  • People be-gone!
  • Any event be-gone!
  • Simple Call Script command

Screenshots

How do you show an erased event?

Script

Insert somewhere above Main.
(click to show/hide)

Instructions

To use, simply set up a Call Script before your battle. Inside the script put:

$game_temp.battle_ids =[1,2,3]

Replacing the 1,2 & 3 with the event ids that need deleting. Again, make sure you still set up another, more permanent, method to make sure the event doesn't reappear.


Compatibility

I don't think there will be any compatability issues. Aliases call_battle from Scene_Map and Initialize from Game_Temp.

Credits and Thanks

I did it all by my self. Yaaaaay!

Author's Notes

Credit if you so wish, but it's 24 lines of code... several of which are blank. So feel free to just use it. Just don't claim it as your own!
« Last Edit: March 13, 2013, 11:37:32 PM by mad.array »
"To walk at speed, manage or oversee..."

"RUN!"

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3191
  • LV: 381
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Monster Event Deletion
« Reply #1 on: March 13, 2013, 08:25:44 PM »
I remember making it more interesting by playing a disappearing animation when the troop is defeated or, if you ran away, it would flash the event and stop its movement for a few seconds. Perhaps if you added features like that, this could be a helpful, and database-worthy, script.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Monster Event Deletion
« Reply #2 on: March 13, 2013, 09:31:26 PM »
and database-worthy, script.

If the header gets fixed. :X
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3191
  • LV: 381
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP] Monster Event Deletion
« Reply #3 on: March 13, 2013, 09:41:56 PM »
But of course!

In its current state, it is not database-worthy :D



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline mad.array

  • Trained Member
  • *
  • Posts: 26
  • LV: 7
  • Gender: Male
  • Homeless Dev
    • View Profile
Re: [XP] Monster Event Deletion
« Reply #4 on: March 14, 2013, 03:48:17 AM »
I think I've fixed the header issue. I'm not sure what to add to the script. Perhaps automatically switching events to the 'down' pose instead of erasing the event? I know it's in one of the add-on packs so I might take a gander and see what I can see. Any other suggestions, let me know.
"To walk at speed, manage or oversee..."

"RUN!"

Offline mad.array

  • Trained Member
  • *
  • Posts: 26
  • LV: 7
  • Gender: Male
  • Homeless Dev
    • View Profile
Re: [XP] Monster Event Deletion
« Reply #5 on: March 18, 2013, 06:11:02 PM »
Actually, I might combine this with some other actor/event related scripts to give devs a bit more control. Should I post a new topic or alter this one?
"To walk at speed, manage or oversee..."

"RUN!"

Offline ThallionDarkshine

  • Ethereal Devastator
  • ****
  • Posts: 274
  • LV: 56
  • Gender: Male
    • View Profile
Re: [XP] Monster Event Deletion
« Reply #6 on: March 18, 2013, 07:19:25 PM »
I could write an addon to this script using my transitions module to allow users to specify a disappearance animation for the events that would disappear with this script.

Offline mad.array

  • Trained Member
  • *
  • Posts: 26
  • LV: 7
  • Gender: Male
  • Homeless Dev
    • View Profile
Re: [XP] Monster Event Deletion
« Reply #7 on: March 29, 2013, 08:01:25 PM »
I've been giving this some thought.As the whole point of the script is to make events disappear during the battle, rather than before or after, I'm going to forego the disappear animation/effect.

@ThallionDarkshine: The thought is still very much appreciated and if you want to add this feature then feel free.

I should also point out that this feature is included in the mad.array Mini Add-on pack. Could I request that this thread be closed? I won't be updating it and if there were any need for updates, I would put them on the add-on page. Thanks.
"To walk at speed, manage or oversee..."

"RUN!"