Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Development (http://angband.oook.cz/forum/forumdisplay.php?f=10)
-   -   Different symbols for wands and rods, how? (http://angband.oook.cz/forum/showthread.php?t=6162)

Hajo June 19, 2013 11:13

Different symbols for wands and rods, how?
 
In my variant I'm using a custom font with additional symbols, and I've been trying to give wands and rods separate symbols. But I hit a config part that confuses me - the flavor definitions.

I started by giving wands the symbolo no. 221:

Code:

K:wand:Magic Missile:128:221
K:wand:Lightning Bolts:128:221
K:wand:Frost Bolts:128:221
K:wand:Fire Bolts:128:221
...

Then I gave rods rthe symbol no. 222:

Code:

K:rod:Treasure Location:128:222
K:rod:Door/Stair Location:128:222
K:rod:Trap Location:128:222
K:rod:Detection:128:222
...

Finally I noticed the flavor pref section and didn't know what to enter there:

Code:

# Item flavor: Pewter
L:172:130:45

# Item flavor: Ivory
L:171:129:45

# Item flavor: Lead-Plated
L:170:130:45

...

45 was the old symbol for both wands and rods ... now what do I enter there if I want wands to have symbol no. 221 and rods to have smybol no. 222?

takkaria June 19, 2013 11:40

Quote:

Originally Posted by Hajo (Post 81729)
Finally I noticed the flavor pref section and didn't know what to enter there:

Code:

# Item flavor: Pewter
L:172:130:45

# Item flavor: Ivory
L:171:129:45

# Item flavor: Lead-Plated
L:170:130:45

...

45 was the old symbol for both wands and rods ... now what do I enter there if I want wands to have symbol no. 221 and rods to have smybol no. 222?

I'm confused about this question because the answer seems really obvious to me - replace 45 with 221 for wands and with 222 for rods. Is there something I'm missing?

Hajo June 19, 2013 14:15

It seemed to me that rods and wands use the same flavours, and so I couldn't separete them. If the use different flavors, then the question is, how can I tell which flavor from the list is a rod flavor and which one is a wand flavor?

I have exported the flavors to a pref file with the "dump visuals" command previously, this was the base for my new pref file.

Derakon June 19, 2013 15:56

They use the same flavors because of the 45 in the flavor definitions file. Copy the list of wand/rod flavors, and make one list use 221 and the other 222 (where the 45 is in the original list).

Hajo June 20, 2013 10:46

Cool, thanks a lot :)


All times are GMT +1. The time now is 07:06.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.