Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small question about names.
Author Message
Neomin Offline
Junior Member

Posts: 8
Joined: Sep 2010
Reputation: 0
Post: #1
Small question about names.

So I have this key and it works but whenever I pick it up it says:

"Picked up"

How do I make it so it says e.g. key?
09-21-2010 06:20 PM
Find all posts by this user Quote this message in a reply
Placeable Offline
Junior Member

Posts: 21
Joined: Sep 2010
Reputation: 0
Post: #2
RE: Small question about names.

I think, but I am not certain, you have to link the item's name and description through your extra_english.lang file like this:

(does not include everything just that specific category)

<CATEGORY Name ="Inventory">
            <Entry Name="ItemName_Key01">Secret Key</Entry>
            <Entry Name="ItemDesc_Key01">A very SECRET key!"</Entry>
</CATEGORY>

Not sure about this since I have not tried it myself; but Journals/Notes/Diaries and most Texts is written in this file I would imagine same goes for items.

Then maybe use the function
SetInventoryMessage(string &asTextCategory, string &asTextEntry, float afTime);
or something.
09-21-2010 07:25 PM
Find all posts by this user Quote this message in a reply
Pandemoneus Offline
Senior Member

Posts: 328
Joined: Sep 2010
Reputation: 0
Post: #3
RE: Small question about names.

You don't have to enter anything in the script, just fill in the field in the level editor. Tongue
[Image: customkey.jpg]

CellarKey would be replaced by Key01 in your example.

[edit]By script I am refering to:
(09-21-2010 07:25 PM)Placeable Wrote:  Then maybe use the function
SetInventoryMessage(string &asTextCategory, string &asTextEntry, float afTime);
or something.

09-21-2010 07:36 PM
Find all posts by this user Quote this message in a reply
Placeable Offline
Junior Member

Posts: 21
Joined: Sep 2010
Reputation: 0
Post: #4
RE: Small question about names.

Oh that is MUCH easier. You can set description for the item as well? Too lazy to look for myself >_>
09-21-2010 08:23 PM
Find all posts by this user Quote this message in a reply
Pandemoneus Offline
Senior Member

Posts: 328
Joined: Sep 2010
Reputation: 0
Post: #5
RE: Small question about names.

I don't know whether I get you right, but there is no way around adding entries to the extra_english.lang

<CATEGORY Name ="Inventory">
            <Entry Name="ItemName_Key01">This is the name you see when you pick the item up and is also used as title in the inventory</Entry>
            <Entry Name="ItemDesc_Key01">This is the item description you see in the inventory</Entry>
</CATEGORY>

09-21-2010 08:29 PM
Find all posts by this user Quote this message in a reply
Placeable Offline
Junior Member

Posts: 21
Joined: Sep 2010
Reputation: 0
Post: #6
RE: Small question about names.

Oh nevermind! I get it now, thought the CustomSubItemTypeName was the actual name the item would get but that filter IS the link to the extra_english.lang. Crystal clear.
09-21-2010 08:36 PM
Find all posts by this user Quote this message in a reply
Neomin Offline
Junior Member

Posts: 8
Joined: Sep 2010
Reputation: 0
Post: #7
RE: Small question about names.

Thanks Big Grin
09-22-2010 03:51 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)