[Ace] Multiple PP problem, what's the efficient way??

*Shows again....*  :blink:

Hello and thank you for reading this topic!

I made a game which looks like a house-chore/maid game. The player needs to clean the furnishes around the room.

I want to make the items or the furnishes inside the room to be randomly get dirtied overtime and i don't know what's the best method to do this.

I made one but it does really lag. i have around 30 below FPS.

So i have this:

- Falcao's mouse button script (i choosed this for clicking those. tested without this but still occured)

- 20x15 map (small, right??)

- 640 x 480 resolution (not very sure if it also affects...)

- Almost 30+ events inside (maybeeee....?)

- A script that shows variable gauge bar with pictures around the screen. (I tested my project without this and it really seems that  the cause of the lag is the parallel process...)

And.... Here's my very ugly method.

From the 30+ events, 10 of those runs parallel process that has a 500-1000 wait time.

The structure is this:

[wait]: 500-1000 frames (each of those 10 events are different)

[set variable]: random 1-300

[conditional]: if random equal or greater 290

[if true]: then the event will play an animation or should i say the indicator that it needs to be cleaned

The 10 events those that. (If it's possible i want more than 10 but..... impossible..)

So what's the best solution for multiple/many parallel process running around inside the map?

Or this kind of game seems not fit to the engine??

Sorry and thanks again!
"From the 30+ events, 10 of those runs parallel process that has a 500-1000 wait time."

That is your problem right there.

you should run a single common event set to parallel proc, to run the whole show. You can use a timer(aka the wait command) which will trigger a randomizer every so often, and that can turn on various switches based on the outcome, that will change the other events

You can also run multiple randomizers at differnt times in the same common event, if you want multiple places to get dirty, fairly consistently as well, if one randomizer Isn't enough(which in your case, I don't think it will be, so you'll want to run a few in the common even at different times)
What's times???

i'm a little confused...

so the common event looks like this?

wait

random variable

if true, switch 1-10(random) will turn on?
What's times???

i'm a little confused...

so the common event looks like this?

wait

random variable

if true, switch 1-10(random) will turn on?
That was a typo which I fixed, sorry about that.

Actually the randomizer will lead to multiple different outcomes(you just keep putting if statements(condition branches one after another, until you cover all the possible outcomes, the event will just keep skipping to the next condition branch, until it find the one that fulfills its requirements), but yes.

Edit: Make sure not to put anything in the or else section, you'll want to create a whole new condition branch, after the entirety of the previous one, to cover a different number in the randomizer.
Ooohhhhhhh.... yes it will work!

(But with a quite effort ☺️  )

But i rather choose this than the lag!

So with that method i can add more events inside the map to clean/process..... right??? 

i'll just have to event it properly from your guide?

i'm quite excited to see and work with it! Thanks for replying for the help~!
Ooohhhhhhh.... yes it will work!

(But with a quite effort ☺️  )

But i rather choose this than the lag!

So with that method i can add more events inside the map to clean/process..... right??? 

i'll just have to event it properly from your guide?

i'm quite excited to see and work with it! Thanks for replying for the help~!
Yea you can in theory add more or less as many events as you want(especially on a smaller map like a house, there shouldn't be any issues at all, based on how many events you have. Parallel proc cause more stress then just having a ton of events, so you're good. I have packed a metric ton of normal events on a single map, and never ran into problems with lag, so doesn't seem to bother the engine much at all).

Basically yea lol, but there Isn't much you can do about that(even if you scripted it, it would be just as long winded). If you have a metric ton of events, you could always make a single switch work multiple events, however without seeing your entire map layout, as well as how many total event's you're going to have, that can become dirty, I don't know if you'll even want to do that. It's gonna have to be your call.

Yep np.
i didn't knew that even i have ace for a long time  >_>

i keep 40 below events in every map.

no, my events are perfectly clean! ☺️   (except my issue here right now...)   :rswt2:

i came to this forum again coz i can't really work with this and you really helped me here! (still making it and testing it right now and it really works~!)

Thanks again! *exaggerates*
i didn't knew that even i have ace for a long time  >_>

i keep 40 below events in every map.

no, my events are perfectly clean! ☺️   (except my issue here right now...)   :rswt2:

i came to this forum again coz i can't really work with this and you really helped me here! (still making it and testing it right now and it really works~!)

Thanks again! *exaggerates*
Stationary events, yea you should have no problem 🙂

Lol by dirty, I meant as in your in game maid mechanic, that you want to make them dirty, so your maid can clean such.

Yep np, glad to help.

Original thread: https://forums.rpgmakerweb.com/threads/ace-multiple-pp-problem-whats-the-efficient-way.46314/