[CF-Devel] Item renaming: proposal, status, question

crossfire-devel-admin at archives.real-time.com crossfire-devel-admin at archives.real-time.com
Mon Aug 4 07:49:33 CDT 2003


Hello.

I started to work on item renaming.
Added a custom_name field to object structure.
Here's what i currently did, and some questions i have / points on which 
i'd like others' opinion :
* custom name appears in inventory & ground lists
* you can use it with apply, mark, any command requiring an item name 
(as long as item_matched_string is used)
* the 'real' name of an item is not modified
* items with a 'real' name matching take precedence over custom names. 
So if I rename my 'haggises' 'wine', and have a 'bottle of wine' in 
inventory, 'apply wine' will apply the bottle of wine.
* custom name is removed when selling an item, but kept when dropped 
elsewhere

I wonder what to do for plural names. Should the 'rename' function take 
2 arguments? Enclosed in " then, maybe. Or another custom plural name field?

Any suggestions, criticisms, comments are welcome :-)

Nicolas 'Ryo'


_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list