Jump to content

Custom Item Description


Telazorn

Recommended Posts

Hello i am looking for any one you has found out a way to place your own item Descriptions. seeing that the Key Text sheet dose not push from a server to client. i tried editing this line.

<property name="DescriptionKey" value="YOURTEXTHERE"/>

But plain text will not work just dose not display so i tried.

<property name="Description" value="YOURTEXTHERE"/>

This dose not work either.

 

If anyone has worked this out hit me up please and thank you

Link to comment
Share on other sites

here is an example of an item ive made

look at the very bottom

 

<item id="1502" name="koolAid"><!--DEV-->

<property name="IsDeveloper" value="true"/>

<property name="CustomIcon" value="bottledWater"/>

<property name="CustomIconTint" value="F9D054"/>

<property name="Meshfile" value="Items/Food/bottled_waterPrefab"/>

<property name="Material" value="glass"/>

<property name="HoldType" value="3"/>

<property name="Stacknumber" value="10"/>

<property name="Weight" value="10"/>

<property name="EconomicValue" value="30"/>

<property name="CraftingIngredientTime" value="15"/>

<property class="Action1">

<property name="Class" value="Eat"/>

<property name="Delay" value="1"/>

<property name="Use_time" value="..."/>

<property name="Gain_health" value="0"/>

<property name="Gain_stamina" value="0"/>

<property name="Gain_food" value="100"/>

<property name="Gain_water" value="100"/>

<property name="Sound_start" value="UseActions/player_drinking"/>

<property name="Create_item" value="emptyJar"/>

</property>

<property name="Group" value="Food/Cooking"/>

<property name="DescriptionKey" value="koolAidDesc"/> <--koolAidDesc is what you need or whatever your item is with 'Desc' added

</item>

 

then in the localization file

 

koolAid,items,Food,,(DEV) Kool Aid,,,, <-- item label

koolAidDesc,items,Food,,Kool Aid... the super juice of liquid meal replacements.\nRestores 100% Food & Water,,,, <-- description that you will see

hope this helps ...BTW try not to use commas in your description as the localizition file uses those as placemark/seperators for the different keys and it will mess up the final results that you see on screen and if you need a new line use (( \n )) like I have above

I know , I know... you's be laughin' at my KoolAid but hey. I grew up drinkin' the stuff and needed a refreshing 'pick me up' for those long builds in creative :)

Link to comment
Share on other sites

  • 1 year later...

Thank you for your reply - either I'm not following you (likely) or this still does not work. Here is an example straight from items.xml:

 

<item name="resourceRawDiamond">
<property name="Extends" value="resourceSilverNugget"/>
<property name="EconomicValue" value="1500"/>
<property name="CraftingIngredientTime" value="60"/>
<property name="DescriptionKey" value="rareOresGroupDesc"/>
</item>

 

When you have that item in your inventory and you "look" at it, you get the description "When mining you will occasionally find rare metals or minerals. Surely they are worth something to someone." from Localization.txt.

 

Now for example if I want to create an item like that but with a new description, how can I do that without modifying localization.txt? This doesn't work:

 

<append xpath="/items">
<item name="resourceRawDiamond2">
<property name="Extends" value="resourceSilverNugget"/>
<property name="EconomicValue" value="1500"/>
<property name="CraftingIngredientTime" value="60"/>
<property name="DescriptionKey" value="diamonds are  a girls best friend"/>
</item>
</append>

 

Nor does this:

 

<item name="resourceRawDiamond2">
<property name="Extends" value="resourceSilverNugget"/>
<property name="EconomicValue" value="1500"/>
<property name="CraftingIngredientTime" value="60"/>
<property name="Description" value="shiny and tastes like rocks"/>
</item>

 

Or anything else I have tried (propery name="desc", property name="name", etc.). In all cases I get a blank description on the inventory ui.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...