Countdown Time Modifier [B_squo]
#1
This code allows the player to modify the countdown time before starting a race.

The values are:
- XXXX: The number of frames the countdown lasts. This is gotten by adding 1 to the number of seconds you want the countdown to last, and then multiplying that with 60 (or 50 if playing in PAL 50Hz). For example, for a 100 seconds countdown, this is (100 + 1) x 60 = 6060 (put 17AC in the code).

- YYYY: The number of seconds the countdown lasts. For example, for a 100 seconds countdown, this is 100 (put 0064 in the code).

- ZZZZ: The number of seconds the countdown lasts plus 1. For example, for a 100 seconds countdown, this is 100 + 1 = 101 (put 0065 in the code).

- RRRR (optional): This is the number of frames during the countdown where the player's nametag hides. This is gotten by substracting the total countdown time in seconds + 1 with the number of seconds you want the nametag to hide, and then multiplying that with 60 (or 50 if playing in PAL 50Hz).
For example, for a 100 seconds countdown, if I want the nametag to hide after 3 seconds from the start of the countdown, we do ((100 + 1) - 3) x 60 = 5880 (put 16F8 in the code). If you don't care about this, you can remove this line, but this makes the nametag hide three seconds before the countdown ends, as usual.

- QQQQ: The BMG ID for the first number displayed by the countdown. Every second, the game adds 1 to this ID, so you get the different text that is displayed.
This means that, if you want to display a sequence of strings during the countdown, they must be put one after the other when it come to their BMG IDs.
For the video below, I modified Race_E.szs to change the text there to have each number from 100 to 1 (and then GO!). Then, I noted down the BMG ID corresponding to the number 100, and put that into this code.

(PAL)
04533540 2000XXXX
045330b8 2060XXXX
0485777c 2800YYYY
04857654 2800ZZZZ
0483376c 3863QQQQ
047f138c 2c03RRRR

(USA)
0452e9f8 2000XXXX
0452e570 2060XXXX
04835cec 2800YYYY
04835bc4 2800ZZZZ
0481b86c 3863QQQQ
047e6d64 2c03RRRR

(JPN)
04532ec0 2000XXXX
04532a38 2060XXXX
04856de8 2800YYYY
04856cc0 2800ZZZZ
04832dd8 3863QQQQ
047f09f8 2c03RRRR

(KOR)
04521598 2000XXXX
04521110 2060XXXX
04845b3c 2800YYYY
04845a14 2800ZZZZ
04821b2c 3863QQQQ
047df74c 2c03RRRR

Example video (modifying the countdown time to 100 seconds)

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)