Frictional Games Forum (read-only)
I wanna give a hint when trying to open inventory - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: I wanna give a hint when trying to open inventory (/thread-23823.html)



I wanna give a hint when trying to open inventory - Neelke - 11-08-2013

Since my custom story is a trilogy, it could be very difficult getting all the items together. Then I came up with an idea to lose the items in a creative way (figured that out already). When items are lost, I want them to also temporarly lose their inventory at the moment too.

Now, I want it to give a message when trying to open inventory at this time. Just like when you don't have a lantern.

Anyone knows how to do this?

(sorry if im confusing you somehow)


RE: I wanna give a hint when trying to open inventory - RaideX - 11-09-2013

It's not exectly a hint when trying to open the inventory but you can use the function:
Code:
void SetInventoryDisabled(bool abX);
In combination with:
Code:
void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
to display the player that the inventory is not available...

Note: You can edit or add new Categories and Entries in the language file in your configfolder. (/redist/config/)[/code]