(10-15-2011, 06:57 PM)schmupper Wrote: I could Give you a hint, but nah...
That reply was a win. =P If you don't understand it, the comment is:
void GiveHint (string& asName, string& asMessageCat, string& asMessageEntry, float afTimeShown);
Displays a hint on the player's screen. asName - the internal name asMessageCat - the category in the .lang file asMessageEntry - the entry in the .lang file afTimeShown - time in seconds until the message disappears. If time is ⇐ 0 then the life time is calculated based on string length.
(This post was last modified: 10-15-2011, 07:27 PM by Statyk.)
I don't understand some of this. In my hps file do i just put it anywhere and do i include void. And I don't know the category name of it or the entry. And where is the spot where i put in the name of my area.
So you want it where you walk into a certain area and says Press F for Latern, Something like this
{
AddEntityCollideCallback("Player" "ScriptAreaName", "MyFunc", true, 1);
}
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Survive the mansion, while revealing your fogotten past...</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_LetterOne_Name">Uncle's First Note</Entry>
<Entry Name="Note_LetterOne_Text">Dustin,[br] You must hurry! A secret cult called "The Dark Descent" have sent out grunts to kill you off. I hadn't expected them to come for a few more months! They know you are alive! This probably all sounds confusing but just trust me. Do this for your parents. I will leave you more notes, but for now you have to get out of their. Grab what you can and go, and don't come back to this room! [br] -Uncle Daniel</Entry>
<Entry Name="Note_LetterTwo_Name">Uncle's Second Note</Entry>
<Entry Name="Note_LetterTwo_Text">Dustin,[br] I should tell you about your parents. First, they aren't dead. They are merely hiding, changed their names, their looks. They needed to hide from the evil that was overcoming our heritage. The "Dark Descent" mistook them for dead. They were part of a.....I hear them coming for me! If i survive i will tell you further more, but for now I have to go! [br] -Uncle Daniel</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_GuestRoomKey">Guest Room Key</Entry>
<Entry Name="ItemDesc_GuestRoomKey">Key to open the nearby door.</Entry>
<Entry Name="ItemName_shinykey">Shiny Key</Entry>
<Entry Name="ItemDesc_shinykey">A Shiny Key. Must go to the nearby door.</Entry>
</CATEGORY>
<CATEGORY Name="Levels">
<Entry Name="leveldoor_1">Hallway</Entry>
</CATEGORY>
<CATEGORY Name="Hint">
<Entry Name="LanternHint">Press F for Lantern</Entry>
</CATEGORY>
</LANGUAGE>