View Single Post
  #38    
Old January 11th, 2013, 11:48 AM
thjenvuongxh
Unhatched Egg
 
Join Date: Mar 2012
Gender: Male
Quote:
Originally Posted by shiny quagsire View Post
Source code? I'd like to see how this works and tweak it for my hack. I'm also not entirely sure what this does. Does it allow for the switching of textbox pallets, or does it add transparency?
After doing the things I said, you can use the VAR 0x8009 to add a number that vai vai say what color text box appears.
For example:
'---------------
#org 0xB00000
writebytetooffset 0x3F 0x4000048
writebytetooffset 0x1F 0x4000049
writebytetooffset 0x41 0x4000050
writebytetooffset 0x3F 0x4000051
writebytetooffset 0xF 0x4000052
writebytetooffset 0xA 0x4000053
setvar 0x8009 0x3
msgbox 0x81833B9 MSG_NORMAL '" [black_fr]The BUG POKEMON are the..."
end


'---------
' Strings
'---------
#org 0x1833B9
= [black_fr]The BUG POKEMON are the best \nFOR SURE!!

The "setvar 0x8009 0x3" is responsible for the color change in the text box.

If we use "setvar 0x8009 0x4" is another color that will show up, but if we use "setvar 0x8009 0x5" because the game will lock in place so we 0x8471DEC this:


Color 0x0:

2E FF 53 8C 31 5A 7F 67 3C 04 3A FF 64 06 4B D2
46 65 14 FF 7F 7B 9A 7B 54 73 7F 8E 62 DC C9 51


Color 0x1:

2E FF 53 8C 31 5A 7F 67 3C 04 3A FF 64 06 4B D2
46 7B 65 14 FF 7F 39 6F 39 39 6F 6F 7F DC 3D CD


Color 0x2:

2E FF 53 8C 31 5A 7F 67 3C 04 3A FF 64 06 4B D2
46 7B 65 14 FF 7F 29 77 A2 6E 40 39 C0 45 E0 61


Color 0x3

2E FF 53 8C 31 5A 7F 67 3C 04 3A FF 64 06 4B D2
46 65 14 1F 7B 7C 59 6F 6B 33 CC 3D 72 90 5A A8


Color 0x4

2E FF 53 8C 31 5A 7F 67 3C 04 3A FF 64 06 4B D2
7B 46 65 14 87 39 10 42 94 52 18 67 77 68 35 9C


So ... ... we can replace this:

* Color 0:00 20 06 E0
* Color 1:10 20 00 E0
* Color 2:20 20 00 E0
* Color 3:30 20 00 E0
* Color 4:40 20 40 00

... to this:

* Color 0:00 20 06 E0
* Color 1:10 20 00 E0
* Color 2:20 20 00 E0
* Color 3:30 20 00 E0
* Color 4:40 20 40 00
* Color 5:50 20 40 00
* Color 6:60 20 40 00
(...)
* Color F:F0 20 40 00

...replace this:

* Color 0:34 04 15 08
* Color 1:38 04 15 08
* Color 2:3C 04 15 08
* Color 3:40 04 15 08
* Color 4:44 04 15 08

...to:

* Color 0:34 04 15 08
* Color 1:38 04 15 08
* Color 2:3C 04 15 08
* Color 3:40 04 15 08
* Color 4:44 04 15 08
* Color 5:XX XX XX 08 (pointer byte 50 20 40 00)
(...)
* Color F:XX XX XX 08 (pointer byte F0 20 40 00)

Last edited by thjenvuongxh; January 12th, 2013 at 08:19 AM.
Reply With Quote