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


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

Posts: 8
Threads: 1
Joined: Sep 2010
Reputation: 0
#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 Reply
Placeable Offline
Junior Member

Posts: 21
Threads: 2
Joined: Sep 2010
Reputation: 0
#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 Reply
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#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 Reply
Placeable Offline
Junior Member

Posts: 21
Threads: 2
Joined: Sep 2010
Reputation: 0
#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 Reply
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#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 Reply
Placeable Offline
Junior Member

Posts: 21
Threads: 2
Joined: Sep 2010
Reputation: 0
#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 Reply
Neomin Offline
Junior Member

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

Thanks Big Grin
09-22-2010, 03:51 PM
Find Reply




Users browsing this thread: 1 Guest(s)