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
Memento Help!
cooleoj Offline
Junior Member

Posts: 24
Threads: 6
Joined: Aug 2011
Reputation: 0
#1
Memento Help!

So im making my custom story and adding mementos. It's just that, my mementos are getting added but only show up as "-" ingame.
Here is my:
.lang
<LANGUAGE>
<CATEGORY Name="Journal">

<Entry Name="Quest_WhereAmI_Text">Oh god, where am i? I probably should't have drank so much last night. Got to find a way out of here.</Entry>

</CATEGORY>
</LANGUAGE>

.hps
void OnStart()
{
AddQuest("whereami", "WhereAmI");
}



Can anyone see what is wrong? If you do please leave a answer Smile

__________________________________________________
http://www.youtube.com/user/TheMRcooleoj20?feature=mhee
10-10-2011, 07:49 PM
Find Reply
ZyLogicX Offline
Member

Posts: 245
Threads: 24
Joined: May 2011
Reputation: 6
#2
RE: Memento Help!

http://www.youtube.com/watch?v=uGCTwQQSZ0A
Do you even have a script in your game, so when the player collides with the scriptarea, thats when the momento comes up

Beyond the Mountains of Madness [15%]
This forum is dying.
(This post was last modified: 10-10-2011, 08:25 PM by ZyLogicX.)
10-10-2011, 08:22 PM
Find Reply
cooleoj Offline
Junior Member

Posts: 24
Threads: 6
Joined: Aug 2011
Reputation: 0
#3
RE: Memento Help!

Waaaaait! Cant it just appear when i start?

__________________________________________________
http://www.youtube.com/user/TheMRcooleoj20?feature=mhee
10-10-2011, 08:38 PM
Find Reply
ZyLogicX Offline
Member

Posts: 245
Threads: 24
Joined: May 2011
Reputation: 6
#4
RE: Memento Help!

Watch the video I provided.

Beyond the Mountains of Madness [15%]
This forum is dying.
10-10-2011, 08:50 PM
Find Reply
cooleoj Offline
Junior Member

Posts: 24
Threads: 6
Joined: Aug 2011
Reputation: 0
#5
RE: Memento Help!

That's where i got my knowledge from.... I followed everything!

__________________________________________________
http://www.youtube.com/user/TheMRcooleoj20?feature=mhee
10-10-2011, 08:54 PM
Find Reply
ZyLogicX Offline
Member

Posts: 245
Threads: 24
Joined: May 2011
Reputation: 6
#6
RE: Memento Help!

Well, you need to place your scriptarea in the playerstartarea... so you get the momento as soon as you spawn in the map. These script areas are ment when you collide with them, you get the journal entry.

Beyond the Mountains of Madness [15%]
This forum is dying.
10-10-2011, 08:58 PM
Find Reply
cooleoj Offline
Junior Member

Posts: 24
Threads: 6
Joined: Aug 2011
Reputation: 0
#7
RE: Memento Help!

I have done that....


__________________________________________________
http://www.youtube.com/user/TheMRcooleoj20?feature=mhee
10-10-2011, 09:01 PM
Find Reply
SonOfLiberty796 Offline
Senior Member

Posts: 371
Threads: 39
Joined: Aug 2011
Reputation: 2
#8
RE: Memento Help!

You dont HAVE TO use an area. You could just use a AddTimer command that gives the memento in like one second or however you want it.

Here's the command if you wish to use it


Creates a timer which calls a function when it expires.
Callback syntax: void MyFunc(string &in asTimer)
asName - the name of the timer
afTime - time in seconds
asFunction - the function to call


AddTimer(string& asName, float afTime, string& asFunction);


So you could do this:

AddTimer("", 1.0f, givememento);


void givememento(string &in asTimer)
{
AddQuest("whereami", "whereami");
}
(This post was last modified: 10-10-2011, 11:17 PM by SonOfLiberty796.)
10-10-2011, 11:15 PM
Find Reply
cooleoj Offline
Junior Member

Posts: 24
Threads: 6
Joined: Aug 2011
Reputation: 0
#9
RE: Memento Help!

I know all this! Hehe... I just need help because the memento shows up as a "-" ingame. Gonna try delete .chache tho!
Will update when i have.

Nope didn't help!! Gaaaaaaah

Hmmm, okey so even if i rename the memento to something completly else in the .lang file it still adds a memento ingame with "-"

OOOOKKKKEY! I got it now, its something wrong with my .lang because now my keys and such arent getting any names either!

<LANGUAGE>
<CATEGORY Name="Description">Version 0.2</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_hollowneedle1">Rusty Hollow Needle</Entry>
<Entry Name="ItemDesc_hollowneedle1">Commonly used among thieves</Entry>
<CATEGORY Name="Journal">
<Entry Name="Quest_StartQuest_Text">Oh god, where am i? I probably should't have drank so much last night. Got to find a way out of here.</Entry>
</CATEGORY>
</LANGUAGE>



whats wrong? Sad

I don't know what i did but now it's fixed!
Here is how it looks now:
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">
Just a brief description!
</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">

<Entry Name="ItemName_hollowneedle1">Rusty Hollow Needle</Entry>
<Entry Name="ItemDesc_hollowneedle1">Commonly used among thieves</Entry>

</CATEGORY>

<CATEGORY Name="Journal">

<Entry Name="Quest_StartQuest_Text">Where am i? Should't have drank so much last night. Why did i even go to the servants party...</Entry>

</CATEGORY>
</LANGUAGE>

well tanks for all help!

__________________________________________________
http://www.youtube.com/user/TheMRcooleoj20?feature=mhee
(This post was last modified: 10-11-2011, 08:51 AM by cooleoj.)
10-11-2011, 08:04 AM
Find Reply
ZyLogicX Offline
Member

Posts: 245
Threads: 24
Joined: May 2011
Reputation: 6
#10
RE: Memento Help!

(10-10-2011, 11:15 PM)Xvideogamer720X Wrote: You dont HAVE TO use an area. You could just use a AddTimer command that gives the memento in like one second or however you want it.

Here's the command if you wish to use it


Creates a timer which calls a function when it expires.
Callback syntax: void MyFunc(string &in asTimer)
asName - the name of the timer
afTime - time in seconds
asFunction - the function to call


AddTimer(string& asName, float afTime, string& asFunction);


So you could do this:

AddTimer("", 1.0f, givememento);


void givememento(string &in asTimer)
{
AddQuest("whereami", "whereami");
}
Okay, really... Why would you use timers for momento's?

Beyond the Mountains of Madness [15%]
This forum is dying.
10-11-2011, 04:31 PM
Find Reply




Users browsing this thread: 1 Guest(s)