Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ending titles
Author Message
markis95 Offline
Junior Member

Posts: 12
Joined: Dec 2011
Reputation: 1
Post: #1
Question Ending titles
Hi, i making my first custom story and i cant found any information how to make ending titles. Can some help me?

Sorry for my bad english.
12-16-2011 10:00 PM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,233
Joined: Jul 2011
Reputation: 215
Post: #2
RE: Ending titles
http://wiki.frictionalgames.com/hpl2/amn...s#general1

Tutorials: From Noob to Pro
12-16-2011 10:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
markis95 Offline
Junior Member

Posts: 12
Joined: Dec 2011
Reputation: 1
Post: #3
RE: Ending titles
Thanks. I have two maps in my custom story, first map working fine but second dont do anithing what i writed in script:
PHP Code: (Select All)
    //===========================================
     // This runs when the map first starts
     
    
void OnStart()
    {
        
PreloadSound("raping.snt");
        
PreloadSound("penis.snt");
        
AddEntityCollideCallback("Player""ScriptArea_1""penis"true1);
        
AddEntityCollideCallback("Player""ScriptArea_2""reping"true1);        
    }
    
    
void penis()
    {
        
PlaySoundAtEntity("""penis.snt""Player"0false);
    }
    
    
void raping()
    {
        
AddTimer("timer1"7"look_to_bed");
        
AddTimer("timer2"130"end");
        
StartPlayerLookAt("cabinet_nice_1"1025"stoplook");
    }
    
    
void look_to_bed()
    {
        
RemoveTimer("timer1");
        
StartPlayerLookAt("pig_corpse_1"1025"stoplook");
    }
    
    
void stoplook()
    {
        
StopPlayerLookAt();
    }
    
    
void end()
    {
        
//StartCredits(penis.ogg, true, string& asTextCat, string& asTextEntry, 0);
    


Can someone tell what is here wrong?
12-16-2011 11:10 PM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,233
Joined: Jul 2011
Reputation: 215
Post: #4
RE: Ending titles
All callback functions have a specific syntax that you must follow, or else the game won't be able to find your callback functions. If you search for the AddEntityCollideCallback function in the link i posted in my previous post, you'll find the syntax required for the callback. You may also want to look at this video: http://www.youtube.com/watch?v=9DCLO62zh...8&index=12

Tutorials: From Noob to Pro
12-17-2011 12:19 AM
Visit this user's website Find all posts by this user Quote this message in a reply
markis95 Offline
Junior Member

Posts: 12
Joined: Dec 2011
Reputation: 1
Post: #5
RE: Ending titles
ok thanks, but how to make lines? i have this code in lang file:

PHP Code: (Select All)
    <CATEGORY Name ="end">
        <
Entry Name="ennd">This mod created by markis95I hope you love me. :3 This is my first ever storyThanks for playing</Entry>
    </
CATEGORY

and i what to make lines. One sentence per line.
12-17-2011 01:46 PM
Find all posts by this user Quote this message in a reply
junkfood2121 Offline
Senior Member

Posts: 267
Joined: Jan 2011
Reputation: 3
Post: #6
RE: Ending titles
Use breakrows: [br]

Example:
This text is on line one![br]This text is on line two!.

May I present to you.. the Grunt Cannon:
http://www.youtube.com/watch?v=v9KjvvVzNNg
12-17-2011 02:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
markis95 Offline
Junior Member

Posts: 12
Joined: Dec 2011
Reputation: 1
Post: #7
RE: Ending titles
OMG. I tryed \n and <br/>. Thank you realy much. You are good guy.
12-17-2011 02:26 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)