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
Some Questions - scripting
Equil Offline
Member

Posts: 94
Threads: 8
Joined: Sep 2010
Reputation: 0
#5
RE: Some Questions - scripting

2. An alternative to using a sign area would be to set a LookAt callback in the script, then have the called function use the SetMessage function.

3. For momentos, you'll need to use the AddQuest function for a trigger in your script, which will add a momento to the journal. Momentos in the .lang file go under the "Journal" category and will go off whatever entry you put in the script file.

Syntax: AddQuest(string& asName, string& asNameAndTextEntry);

asName - Name of the quest

asNameAndTextEntry - The Entry that will be used in the .lang file

e.g

In the script -
void AddCrowBarQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("crowbarquest", "CrowBarQuest");
}

In the .lang file -
    <CATEGORY Name="Journal">
    
    <Entry Name="Quest_CrowBarQuest_Text">The door's blocked by weak planks of wood. Maybe I can find something to pry them off?</Entry>

</CATEGORY>
01-20-2011, 03:57 AM
Find


Messages In This Thread
Some Questions - scripting - by KonKaizo - 01-19-2011, 06:01 PM
RE: Some Questions - scripting - by Tanshaydar - 01-19-2011, 06:45 PM
RE: Some Questions - scripting - by KonKaizo - 01-19-2011, 07:25 PM
RE: Some Questions - scripting - by Tanshaydar - 01-19-2011, 07:34 PM
RE: Some Questions - scripting - by Equil - 01-20-2011, 03:57 AM
RE: Some Questions - scripting - by Tanshaydar - 01-20-2011, 12:37 PM
RE: Some Questions - scripting - by KonKaizo - 01-22-2011, 12:45 PM
RE: Some Questions - scripting - by Tanshaydar - 01-23-2011, 01:01 PM



Users browsing this thread: 1 Guest(s)