Frictional Games Forum (read-only)
Ending titles - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Ending titles (/thread-11892.html)



Ending titles - markis95 - 12-16-2011

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.


RE: Ending titles - Your Computer - 12-16-2011

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#general1


RE: Ending titles - markis95 - 12-16-2011

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:
    //===========================================
     // 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?



RE: Ending titles - Your Computer - 12-17-2011

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=9DCLO62zhNE&list=PLD326789BC99530C8&index=12


RE: Ending titles - markis95 - 12-17-2011

ok thanks, but how to make lines? i have this code in lang file:

PHP Code:
    <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.



RE: Ending titles - Linus Ă…gren - 12-17-2011

Use breakrows: [br]

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


RE: Ending titles - markis95 - 12-17-2011

OMG. I tryed \n and <br/>. Thank you realy much. You are good guy.