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
Script Help Adding note through script
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#1
Adding note through script

Hey there. I want to add a note to the journal in one of the scripts I got in my mod.

I found this on Engine Scripts page, but I don't really understand that function, specifically the "Must end with _Name and _Text". Can someone explain it to silly me? >_>

void AddNote(string& asNameAndTextEntry, string& asImage);
Adds a note to the player's journal.

asNameAndTextEntry - entries in the .lang file. Must end with _Name and _Text and be in category “Journal”!
asImage - the background image to be used

Thanks ahead of time!
(This post was last modified: 06-29-2015, 09:37 PM by Slanderous.)
06-29-2015, 09:32 PM
Find
Rahmerh Offline
Member

Posts: 66
Threads: 7
Joined: Jun 2015
Reputation: 3
#2
RE: Adding note through script

Mhmm that's really odd... It would make sense if you needed 2 strings. 1 for _Name and 1 for _Text... Have you tried it like this: "This is the name_Name this is the text_Text"? I'm pretty sure it wont work, but you could try
(This post was last modified: 06-29-2015, 10:53 PM by Rahmerh.)
06-29-2015, 10:50 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#3
RE: Adding note through script

(06-29-2015, 10:50 PM)Rahmerh Wrote: Mhmm that's really odd... It would make sense if you needed 2 strings. 1 for _Name and 1 for _Text... Have you tried it like this: "This is the name_Name this is the text_Text"? I'm pretty sure it wont work, but you could try

I figured it out somehow. You only need to specify the entry from journal category. Thanks for the tip though!
06-29-2015, 11:06 PM
Find
Rahmerh Offline
Member

Posts: 66
Threads: 7
Joined: Jun 2015
Reputation: 3
#4
RE: Adding note through script

(06-29-2015, 11:06 PM)Lazzer Wrote:
(06-29-2015, 10:50 PM)Rahmerh Wrote: Mhmm that's really odd... It would make sense if you needed 2 strings. 1 for _Name and 1 for _Text... Have you tried it like this: "This is the name_Name this is the text_Text"? I'm pretty sure it wont work, but you could try

I figured it out somehow. You only need to specify the entry from journal category. Thanks for the tip though!

Oh right, that makes sense xD Of course it pulls it's content from the .lang file... I can't think sometimes Tongue
(This post was last modified: 06-29-2015, 11:35 PM by Rahmerh.)
06-29-2015, 11:34 PM
Find




Users browsing this thread: 1 Guest(s)