kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,775
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,775
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,775
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,775
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

The site is being slow and funky again. IS SOMEONE CRAFTING POEMS?!
So yeah, @TRIDIUM @TESTOSTERONE, I wuz like, "What do they mean by borderline and boundaries?"

And then, y'all know this girl?

actress1.png

alice_bikini.png

The clothes? They're just a, um, quick edit. :kaoswt:
I've uploaded the opening cutscene from my game to my channel. It basically introduces us to the first three characters, and what their relationships are:
Cosmic Inferno: Opening dialogue
I don't want to start a panic...but everyone, check the color of your milk!
IMG_20231002_082329.jpg
My One Map Challenge is nearing completion. I am in the multiple run testing phase atm. This is the map. Beware the minotaurs in the maze area. The female ones are more aggressive. Can you prove to the land of Winchell that a dragon and a human can love each other?

Forum statistics

Threads
135,021
Messages
1,253,017
Members
177,949
Latest member
fefemaker
Top