Thread:FixSRwiki/@comment-46261745-20200829124347/@comment-46261745-20200905164453

My bad on the base value. From what I'm seeing, the base value is overridden by the class, not added to it, so it's a kind of default for classes with a 15 base speed (?). Probably has no impact on the guide, just a way they coded the class base speed section...

Considering that the 15 base doesn't apply, then in the second screenshot, I would have expected to be 10 total, not 14... From playing around with 速度補正値, it appears that lint can't go negative... so I think what happened is  6-6 (ignore -4 because it can't go negative)+10+4=14. An easy way to verify would be to see if we can get a commander with speed high enough that it negates more than their class base speed, and see if it just drops to 0 instead of going negative

So the order that modifiers get applied, actually matters because of this.

Do we want to change this btw? I could fairly easily add on the 10+4 before the speed/speed buff substractions are made, his would be a mod to the current algorithm though.

The total is the 速度 variable in 順番_登録. So that is the actual, final speed value of the character that is registered, not something that I made up.

Your theory about inheriting speed values from earlier in the battle should be correct though (I mean, it's pretty obvious when a character gets a double move). What appears to happen is that each beginning of turn, in the 順番_時間更新 function, each commander's delay is reduced by as much as needed for the commander in the first position to have a delay of 1 (note that commanders can have the same delay, but different order - see below). That commander is then chosen to have their turn in Ｐ合戦処理 where it says n武将番号 = 順番番号[1];. So the "total" value in the message box is all tthe delay they get (it doesn't remember previous turns), but the other commanders still have dely values that are not the same as their order (as in the commander who moves next might still have a delay of 10), tI think that explains what you observed in bullet 4?

For example, on commander 1's turn they get reordered with a delay total of 10, but commander 2 has a delay of 100, so commander 1 just gets slotted back into the first position, and gets a double turn. On the next turn, because commander 1 has 10 delay, commander 2 reduces to 90 delay, etc until commander 2's delay is lower than commander 1's new delay.

If the delay is tied, commander 1 just finished their 9th turn in a row, and has a 10 delay to match comamnder 2's 10 delay, then according to 順番_登録, it would appear that commander 1 gets slotted in after commander 2 (and any other commanders with the same delay).

As for convert action... The way it appears to work is that it changes the targeted commander's 予備１ attribute to true/1, to then trigger an extra +6 for that commander for any future turns. It doesn't directly change their speed or order when it's used. I believe this should actually appear in the message box - I didn't know what it was at the time, so I just put (予備１?) beside the value.