Running a common event each turn, for every actor and battler?

jonthefox

Veteran
Veteran
Joined
Jan 3, 2015
Messages
1,431
Reaction score
593
Primarily Uses
Would this be a laggy and inefficient way to accomplish what i want, or is this precisely what common events are designed to do?

I don't want poison or burn damage for example to be purely a function of the battler's maxhp, I want to be able to prescribe the damage formula while also factoring in the type of damage and factoring in the target's elemental resistance to that type of damage. So what I'm thinking of doing is:

I run a common event on every actor and battler, each turn, that checks if they have the poison state, or the burn state.

If they do, I use the force action event to use a skill on them, which would inflict either poison or burn damage according to the damage formula i use in the skill, and therefore if that actor or battler has elemental resistance to poison or fire damage, it gets naturally factored in.

I can also create different poison and burn states, that correlate with skills that inflict a higher amount of damage, but still factoring in the target's poison or fire resistance.

Is this a good solution to my desired outcome without needing a plugin, or am I creating a huge mess for myself and potentially causing lag since I'm running these common events every turn for every battle?
 

Raith

Squire
Veteran
Joined
Oct 28, 2019
Messages
69
Reaction score
55
First Language
Indonesian
Primarily Uses
RMMZ
From my experience it is possible to do this by using indirect parallel common event, thus avoiding serious lag. As far as I know, there are two ways to do this without plugin:

Option 1: Let the common event to run in each turn by setting it in the Troop Event.

The only problem with this method is the tediousness: for each troop, you must set the same setting. You unfortunately need to use plugin similar to YEP Base Troop Event to overcome this problem.

Option 2: Let the common event to trigger only when a switch is on.

The switch is turned on only when player is in battle scene. This will require the knowledge of scripting and another parallel common event that check every single second that you're entering a battle. Because it only check whether you're in a battle, it won't be as heavy as choking a whole damage calculation into single-second parallel trigger.


Since any RPG Maker version is technically no different with other game-developing platform, I must admit that self-made plugin is the best answer for this problem. It is probably going like this: first you need to identify the function that control default overtime damage, then you store the new damage formula in the state notetag, and finally call the formula under condition that currently active state is the one with the new damage formula.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:
Microsoft: Hey, let's waste money advertising the Xbox Series X when nobody has any in stock, we don't seem to be making more, we aren't taking preorders and you can't get on a waiting list. BEST. IDEA. EVER.
So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.

Forum statistics

Threads
105,633
Messages
1,015,133
Members
137,292
Latest member
inkdrips
Top