Language…
5 users online: Easy Difficulty, isaix, sholmes, Trisma, underway - Guests: 58 - Bots: 226
Users: 66,536 (2,385 active)
Latest user: linkypants

b4vwf - message boxes on BG4

Patch

I think these macros are needed for this patch.
If this macro existed, it would be possible to put multiple languages on a single ROM, or rename the overworld levels in different contexts.

Example(This isn't actually working code.):

%ramdata(Address, Number)
%ramdata_end()
This will only display a message when the value of the Address is equal to Number.

%ramdata_range(Address, Number, Number2)
%ramdata_range_end()
This will only display a message when the value of the Address is greater than or equal to Number1 and less than Number2.

%number_dec(Address, Bit)
Displays the value of Address as a decimal number. Bit is number of bits, $00 is 8-bit, $01 is 16-bit.

%number_hex(Address)
Displays the value of Address as a hexadecimal.

Code
	%ramdata($14AF, $00)
		db "Switch is on."
	%ramdata_end()
	%ramdata($14AF, $01)
		db "Switch is off."
	%ramdata_end()
	db $00

The content of this message differs depending on whether the On/Off switch is enabled.

Patch