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


Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Simple Memento with item
RedFiction12 Offline
Junior Member

Posts: 9
Threads: 2
Joined: Jul 2012
Reputation: 0
#9
RE: Simple Memento with item

Yes they are. My other codes work like they should (ex. Message, MonsterFunction). It seems that i cant copy and paste correctly, bad instructions or there is no way to do it, but i think its reason number 1 so. thats why i copied everything and paste it under here, so you people can check it.


.hps :

void OnStart()
    {

        AddEntityCollideCallback("Player", "FindLantern_Quest_Area", "GetFindLanternQuest", true,1);
        SetEntityCallbackFunc("Lantern", "FinishFindLanternQuest");
        
    }

void GetFindLanternQuest(string& asName, string& asNameAndTextEntry)
    {
        AddQuest("findlanternquest", "FindLanternQuest");
    }

void FinishFindLanternQuest(string &in entity, string &in type)
    {
    if(type == "OnPickup")
        {
            CompleteQuest("findlanternquest", "FindLanternQuest");
        }
    }


.lang

<LANGUAGE>

   <CATEGORY Name="CustomStoryMain">
      <Entry Name="Description">
         Test
      </Entry>
   </CATEGORY>
  
   <CATEGORY Name="Journal">
        <Entry Name="Quest_FindLanternQuest_Text">Find yourself some kind of source light</Entry>    
   </CATEGORY>
    
   <CATEGORY Name="Messages">
        <Entry Name="Message1">"Damn its dark here...need to find some kind of light source."</Entry>    
   </CATEGORY>
  
</LANGUAGE>
(This post was last modified: 07-03-2012, 07:57 PM by RedFiction12.)
07-03-2012, 07:56 PM
Website Find


Messages In This Thread
Simple Memento with item - by RedFiction12 - 07-03-2012, 04:39 PM
RE: Simple Memento with item - by Strembitsky - 07-03-2012, 04:58 PM
RE: Simple Memento with item - by RedFiction12 - 07-03-2012, 06:25 PM
RE: Simple Memento with item - by ZyLogicX - 07-03-2012, 06:43 PM
RE: Simple Memento with item - by RedFiction12 - 07-03-2012, 07:20 PM
RE: Simple Memento with item - by Mackiiboy - 07-03-2012, 07:33 PM
RE: Simple Memento with item - by RedFiction12 - 07-03-2012, 07:44 PM
RE: Simple Memento with item - by Your Computer - 07-03-2012, 07:48 PM
RE: Simple Memento with item - by RedFiction12 - 07-03-2012, 07:56 PM
RE: Simple Memento with item - by Your Computer - 07-03-2012, 08:08 PM
RE: Simple Memento with item - by RedFiction12 - 07-03-2012, 08:12 PM
RE: Simple Memento with item - by Your Computer - 07-03-2012, 08:26 PM
RE: Simple Memento with item - by RedFiction12 - 07-04-2012, 01:54 PM



Users browsing this thread: 1 Guest(s)