PDA

View Full Version : NPC script modification request...



espeorb
12-12-2008, 06:04 PM
This seems easy enough to do, but I don't know. Okay, you know pkmnfrk's NPC script? Yeah, see that would be a good basis. I would like to have an NPC script like that which displays a black background under the message. Sort of like this:

http://www.consoleclassix.com/info_img/Legend_of_Zelda_Oracle_Of_Seasons_GBC_ScreenShot4. gif

Okay, a lot like that. This may or may not already be in the showcase, but I've searched through several pages and cannot find it. Pkmnfreak's NPC script makes it hard to distinguish the string/message from a varied background, even when using a different color for the string. Could anybody do this?

Pielord
12-12-2008, 06:37 PM
The script doesn't change the background I don't think, it just plays a string. Therefor, you would have to change it in the string editor.

Joe123
12-12-2008, 06:38 PM
Go to the tile editor.
Make a black tile.
Copy it so that you have 4 in a square shape.

Go to the string editor.
Select a string.
See that little black box in the right-middle, below where you type in the string?
Click it.
Select the top left tile of the square you just made.

Repeat for all strings.

The_Amaster
12-12-2008, 06:45 PM
Clarified:

Go to the tile editor.
Make a black tile.
Copy it so that you have 4 in a square shape.
Do this just once



Go to the string editor.
Select a string.
See that little black box in the right-middle, below where you type in the string?
Click it.
Select the top left tile of the square you just made.
Do this for every string

espeorb
12-12-2008, 06:48 PM
Squee! Now I feel like an idiot and a newbie, though. Oh well. Thanks so much!

pkmnfrk
12-12-2008, 06:54 PM
I should amend the script's page, since this question has come up before. I wish there was a way to change the background of a string, though. I guess it's just another thing to work around with my custom messa- er, I probably shouldn't say anything at this point...

espeorb
12-12-2008, 07:03 PM
Hmm.... that's odd. I set the background of all the strings to a pure-black tile that has the exact same tile to the bottom, right and bottom-right of it. They're basically filler tiles included in the tileset. However, they don't show up behind the message. Why is this? Is it because black is counted as a "transparent color"? Or what?

Joe123
12-12-2008, 07:53 PM
Clarified:
Do this just once
Do this for every string

heh, I thought that went without saying really.


And I believe the transparent colour's not counted as transparent in a string background, but it may have changed...

espeorb
12-12-2008, 08:15 PM
heh, I thought that went without saying really.


And I believe the transparent colour's not counted as transparent in a string background, but it may have changed...

It may have changed, though I don't know. I'm using 901, though I'm trying to upgrade every time they put a new build on shardstorm. That's kind of hard. But anyway, I know that it's counted as transparent in basically everything though I don't know about strings. Unless there's something I'm doing terribly wrong.

Here's some screenshots:

http://i225.photobucket.com/albums/dd46/espeorb/zcproblem001.jpg
The above pic contains me showing you with a red border, red arrow and text which tile I'm using for a string. Ignoring the red brush border, the tile has the exact same tile to the bottom, right and the bottom right.

http://i225.photobucket.com/albums/dd46/espeorb/zcproblem002.jpg
This one shows the exact same string (not shown in first pic) in the game, with pkmnfrk's NPC script (unmodified). As you can see, no black background, thus barely readable.

pkmnfrk
12-12-2008, 10:43 PM
Take an unused tile (such as the one you picked), and edit it. Fill it with a black other than the first black (with the white X).

Bad:
http://zctut.com/zelda016.png

Good:
http://zctut.com/zelda017.png

espeorb
12-12-2008, 10:54 PM
Ohh... oh. Now I get it. See, I had never actually edited a tile before. Thanks, pkmnfrk and everybody else! You were a big help!

pkmnfrk
12-12-2008, 11:07 PM
I can only assume you're well on your way to being a pro! Good luck!