kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,773
Reaction score
893
First Language
English
Primarily Uses
RMXP
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! :D

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!
 
Last edited:

kn1000a

Golden Vampire
Regular
Joined
Dec 21, 2017
Messages
74
Reaction score
5
First Language
English
Primarily Uses
RMMZ
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
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,773
Reaction score
893
First Language
English
Primarily Uses
RMXP
=_= 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.
 
Last edited:

kn1000a

Golden Vampire
Regular
Joined
Dec 21, 2017
Messages
74
Reaction score
5
First Language
English
Primarily Uses
RMMZ
=_= 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?
 
Last edited:

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,773
Reaction score
893
First Language
English
Primarily Uses
RMXP
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...)
 

kn1000a

Golden Vampire
Regular
Joined
Dec 21, 2017
Messages
74
Reaction score
5
First Language
English
Primarily Uses
RMMZ
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 :kaojoy:
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,773
Reaction score
893
First Language
English
Primarily Uses
RMXP
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! :o

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! :D
 

Arthran

Regular
Regular
Joined
Jun 25, 2021
Messages
1,099
Reaction score
1,600
First Language
English
Primarily Uses
RMMZ
In my heart, this script will always be called "The Freshmaker".
 

Latest Threads

Latest Profile Posts

Things you can say about your RPG maker project, but not about your partner:
I’m so lucky! Simone got referred to a feline cardiologist and had I not called this morning the moment there was a cancellation the next opening would have been SEVEN months from now! The other heart hospital would have been on the other side of Michigan. Who knew that animal specialty appointments were also terrible to get!?
Scalemail project is one step closer to completion. Ordered scales from a local metalworking company, ordered some split rings... now all I need is to wait. :>
And pray that the split rings will be flexible enough to handle that.
A spooky banner and a spooky pfp for a spooky season.
Spooky-Season.png
Broke: Actually making the stuff you need to make before the game can progress.
Woke: Wasting time instead by making a sidequest where you can recruit an imaginary friend to the party.
1696264391516.png

Forum statistics

Threads
134,994
Messages
1,252,704
Members
177,900
Latest member
LinkIncGames
Top