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


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quest And Journals
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#1
Quest And Journals

Hello I got problem in my notes and quest i goted the quest to get at the are to work but it dosnt say what i want to and it wont complete at the Complete area anyone what problem is here is lang.
PHP Code: (Select All)
<LANGUAGE>
   <
CATEGORY Name="CustomStoryMain">
      <
Entry Name="Description">
        
The darkness is hunting you!....
      </
Entry>
   </
CATEGORY>
    <
CATEGORY
    <
Entry Name="Note_note_letter_1_Name">Run</Entry>
    <
Entry Name="Note_note_letter_1_Text">Run... the darkness is hunting you!!!"</Entry>
    <Entry Name"
Quest_TheWayQuest_Text">Find a way out</Entry>
    </CATEGORY>

   </LANGUAGE> 


here hps
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""TheWay_Quest_Area""GetTheWayQuest"true1);
AddEntityCollideCallback("Player""TheWay_Complete_Area""FinishTheWayQuest"true1);
}

 
void GetTheWayQuest(string &in asParentstring &in asChildint alState)
{
AddQuest ("thewayquest" "TheWayQuest");
}

void FinishTheWayQuest(string &in asParentstring &in asChildint alState)
{
CompleteQuest ("thewayquest" "TheWayQuest");
}
void OnEnter()
 {
     
AddUseItemCallback("""keytodoor_1""mansion_1""KeyOnDoor"true); 
 }

 
void KeyOnDoor(string &in asItemstring &in asEntity)
 {
     
SetSwingDoorLocked("mansion_1"falsetrue);
     
PlaySoundAtEntity("""unlock_door.snt""mansion_1"0.0ftrue);
 } 

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
12-25-2011, 03:53 PM
Website Find
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#2
RE: Quest And Journals

Your .hps appears to be correct. The problem lies in you not naming the Journal category. You had

<CATEGORY>

// Journal stuff

</CATEGORY>



When you should have had

<CATEGORY Name="Journal">

// Journal Stuff

</CATEGORY>\



I'm sure that if you make this minor change, it should work just fine.

12-25-2011, 04:19 PM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#3
RE: Quest And Journals

thanx mannn gonna check it now Ty!!! Smile<3
btw you know whats wrong on my name for the key custom name.
I got this then


<CATEGORY Name="Inventory">
<Entry Name="ItemName_doortokey1">A Key</Entry>
<Entry Name="ItemDesc_doortokey1>Key to an door</Entry>
</CATEGORY>

no i dosnt work Sad

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 12-25-2011, 04:26 PM by jessehmusic.)
12-25-2011, 04:25 PM
Website Find
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#4
RE: Quest And Journals

Make sure the entry on your extra_english.lang corresponds with the CustomItemSubType, under the Entity tab.

For example, Key1 needs to be under the CustomItemSubType(Could have the name wrong, but it'll be near the bottom under the entity tab of the item) and not the name under the General tab.

12-25-2011, 05:13 PM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#5
RE: Quest And Journals

ty i have it to work now ty btw do you know how to make a door slam when player enter area i cant find any tut on youtube or on this forum :S Do you know if you know please shere ! Smile<3
i found this as doorslam in an other custom stories just so i can check out how it looks when it worked but this is what i found "void DoorSlam(string &in asParent, string &in asChild, int alState)
{
if(GetSwingDoorClosed("mansion_1") == false){
StartPlayerLookAt("mansion_1", 5, 5, "");
AddTimer("Slam", 0.5f, "TimerSlamDoor");
}
}

void TimerSlamDoor(string &in asTimer)
{
SetSwingDoorClosed("mansion_1", true, true);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
GiveSanityDamage(25.0f, true);
AddTimer("Stoplook", 3.0f, "PlayerStopLook");
}"

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 12-25-2011, 05:26 PM by jessehmusic.)
12-25-2011, 05:22 PM
Website Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#6
RE: Quest And Journals

Btw nvm i have it to work

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
12-25-2011, 07:48 PM
Website Find
Rhonin Offline
Junior Member

Posts: 3
Threads: 0
Joined: Jan 2012
Reputation: 0
#7
RE: Quest And Journals

(12-25-2011, 07:48 PM)jessehmusic Wrote: Btw nvm i have it to work
Hi, I'm having the same problem and I was wondering if you would post the fixed version of your "add quest" .lang and hps. because I can't figure out why my quest text doesn't show.

I would apreciate it very much. an maybe we can even put it up on the wiki Smile
01-19-2012, 05:09 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#8
RE: Quest And Journals

(01-19-2012, 05:09 PM)Rhonin Wrote:
(12-25-2011, 07:48 PM)jessehmusic Wrote: Btw nvm i have it to work
Hi, I'm having the same problem and I was wondering if you would post the fixed version of your "add quest" .lang and hps. because I can't figure out why my quest text doesn't show.

I would apreciate it very much. an maybe we can even put it up on the wiki Smile
The thing about adding quests is that they explain it pretty bad on the wiki (atleast that's what I thought) So i would suggest looking at the original amnesia .lang file and then learn from there.

But it should be written something like this

<CATEGORY Name="Quest">
<Entry Name"Quest_TheWay_Text">Find a way out</Entry>
</CATEGORY>

(I think.. I'm not at my own computer so i can't check but i think it's like this)

(This post was last modified: 01-19-2012, 05:30 PM by SilentStriker.)
01-19-2012, 05:29 PM
Find
Rhonin Offline
Junior Member

Posts: 3
Threads: 0
Joined: Jan 2012
Reputation: 0
#9
RE: Quest And Journals


(01-19-2012, 06:16 PM)Rhonin Wrote: Haha this is so mad! I can't understand it Tongue okay look at this:

.hps
void GetTheWayQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest ("trailquest" , "00Trail");
AddQuest ("start" , "01Begin");
AddQuest ("test" , "02LockedDoor");
}
.lang

Follow the liquid trail and find its source.
Investigate the mainhall
Find the key for the Wine Cellar.


the function that adds quests to the journal.
the "trailquest" and "test" quests get added because I copied them from the original .lang and the "start" text doesn't show. and it has the same layout.

derpaderp, I can't see it. maybe i've been staring at this to long. can someone shine light on this? otherwise Ill just use the original namings for quests Tongue

and the qurious thing is, that the "-" in front of the questtekst does show for the "start" quest but the tekst doesn't so there is probably a faulty line in the .lang

Ill get back at this after my pizza :/

okay so I found out that my custom quests still reffer to the english.lang off the original campaign...
it takes it's textinput from the lang_main/english.lang file I wonder why.
(This post was last modified: 01-19-2012, 06:30 PM by Rhonin.)
01-19-2012, 06:16 PM
Find




Users browsing this thread: 1 Guest(s)