New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MoveType random is not frame accurate #1638
Comments
Test Cases
Make it trigger parallel and put this code:
Despite having
Result event stays facing down and |
There is a table that maps frequency to
Now it seems that the
*: This is a strange case which I discovered only now. From how it looks to me, the normal value is used after each move step, but when a new event page is chosen in an event, that event's Then there is a probability table for the different move actions in case of
Note that random's high value is exclusive! |
I discovered this in #1601. There is the
Are you sure about these? From my testing I observed something different. With move type random, I saw the |
At least that's RM2k behavior, pretty sure. Not sure about RM2k3 though. It's possible though that the multiplier for |
What about random step in a move route? Is it just direction = rand(0,3) or does it have a probability table like above? |
It is simply a random turn with equal distribution plus a step forward. |
Also I fixed a mistake above, it should be:
instead of
|
That seems plausible. Just setting Also in one of my tests I remember observing that during a step, the All of that combined would lead to what I observed where it only waits 1 frame. |
This happens automatically after each move action, I was only concerned about the value of |
One more question, for determining direction here. Are we using |
In what context? |
In this table, the turn actions. What is the input direction used? This would mostly come into account for a spinning event.
|
The turn action in this table simply reads and writes |
Hm, even though it's not relevant here, maybe it's relevant somewhere else - this is the ruleset for updating the
EDIT: Looks like you already have this properly anyway, in a simpler way using math ^^ Line 463 in f07e49e
|
Some details in test case 10.3 in #1567
move type random has some unique behaviors. Needs more investigation and fix to replicate RPG_RT
The text was updated successfully, but these errors were encountered: