Refreshable Events ACE

Refreshable Events ACE

by Kyonides
​

Introduction

Do you love using Self Switches as Page Conditions?
Are you worried about mobsters leaving worthless treasures that the player will never ever pick up and pack them?
You don't want the player to see those useless spoils are still lying on the floor when the party returns to that map?

Then I have got a solution tailored especially for your gaming needs! 😀

With just a script call placed right after the player has defeated the enemy troops, you can tell the map to take care of just those events that would look totally out of place once the player returns to that map.

Read the embedded comments to find out how to do it!

Ruby:
# * Refreshable Events ACE * # 
#   Scripter : Kyonides Arkanthes
#   v0.5.0 - 2023-06-03

# Are you worried about mobsters leaving worthless treasures the player will
# never ever pick up and pack them?
# You don't want the player to see those useless spoils are still lying on the
# floor when the party returns to that map?
# Or are you tired of finding the loot returning on its own after you saved
# and loaded the same game session?
# Now this scriptlet will handle the automatic refresh of such events!

# * Script Calls * #

# - Use it right after the party has defeated the enemy troops!
#   refreshable_event

# - Use it only if you ever need to cancel the refreshable effect.
#   normal_refresh_event

Do you need a demo to confirm this actually works?
Look no further!


Terms & Conditions

Free for use in any game.
Include my nickname in your game credits.
That's it!
I feel blessed! Thank you for making this script, I have to check it out when I got home!

Oh btw is it me or the comment repeated in the script call? I guess there are two script calls for different setup but they both have the same comment
=_= And you had to mention it, right @kn1000a ?
Anyway, it's been rewritten for the game developers' sake.
I recommend you to go download the demo just in case.
=_= And you had to mention it, right @kn1000a ?
Anyway, it's been rewritten for the game developers' sake.
I recommend you to go download the demo just in case.
I tried your demo (great setup btw) and I wanna give a try to my picking-up-spoils idea so I added the following on page 2 of the skeleton event:

1685680715023.png


After the battle, the event became a sparkling event and I can interact with it to pick up 100 gold. If I don't, it works just like you documented, and going back to the map the event became the skeletons again.

If I do pick up the gold, the event erases itself. I left the map, then walked back to it. The problem is the sparkling event is still there, and I can pick up another 100 gold. This repeats whenever I pick up the gold. Removing "Erase Event" leads to the same result. Did I do anything wrong here?
Demo Updated!​

Based on a forumer's feedback, there was no need to add any other script call to your event setup.

The answer is pretty simple. There was no need to make a script call on Page 2. You just erase the event like you normally do and that's it!

I realize that the second script call is only needed IF there's any other reason to remove the event from the event refresh list. (I can't think of one right now...)
Demo Updated!​

Based on a forumer's feedback, there was no need to add any other script call to your event setup.

The answer is pretty simple. There was no need to make a script call on Page 2. You just erase the event like you normally do and that's it!

I realize that the second script call is only needed IF there's any other reason to remove the event from the event refresh list. (I can't think of one right now...)
I tried the updated demo, works fine now! Thank you again for writing this 😂
Demo Update!​

After further testing the demo after some forumer wanted to globally save some data on a file, I suddenly noticed something quite fishy.

Whenever you defeated the Basilisk and picked up the loot, the event didn't stay erased. This meant that you could get that prize as many times as you wanted as long as you saved and loaded the same game session till your hand could not handle it anymore! 😮

The reason was that my second event page was a little different than in my other demos, where the enemy event does not trigger another self switch at all. Under that circumstance it remains erased as expected, but that is not the case if you erase it for any reason like I did in the RMXP demo.

Don't worry, pals! There is an easy fix and this new version of my script includes it for sure! 😀
In my heart, this script will always be called "The Freshmaker".

Original thread: https://forums.rpgmakerweb.com/threads/refreshable-events-ace.157995/