Page 1 of 1

Object commands and shorthands

Posted: Tue Sep 04, 2012 7:56 am
by Trillarel
The game won't accept 'hammer' as a shorthand for warhammer, nor 'spear' for halfspear.

Re: Object commands and shorthands

Posted: Tue Sep 04, 2012 10:15 am
by Harroghty
Keywords vary by object, even between those of the same type. Which objects were these, please?

Re: Object commands and shorthands

Posted: Tue Sep 04, 2012 10:42 am
by Trillarel
I only remember the warhammer was looted from a duergar. Boy, these drop a lot of warhammers. And I think the problem was with all of their warhammers.

A half-spear might have been the 'steel half-spear' I looted from a bandit and have in my pack, but I remember coming across another half-spear [turquoise, methinks], so I'm not sure...

Re: Object commands and shorthands

Posted: Tue Sep 04, 2012 8:11 pm
by Harroghty
Okay. This is an example of how the loot table works:

a turquoise halfspear decorated with silver coins.
Name: a turquoise halfspear decorated with silver coins
Vnum: 162 Type: halfspear Count: 4201 Gcount: 1 Cost: 0 Weight: 2.8
Short description: a turquoise halfspear decorated with silver coins
Long description: A turquoise halfspear decorated with silver coins lies here on the ground.
All of the keywords (shown after name) are derived from the object's title. It appears that it will take an act of Mask in order for those randomly generated warhammers and halfspears to have the additional names; he has to change the way that they are created. I looked at the loot.dat file and did not see a way to update this.