Frictional Games Forum (read-only)
Script - Piano Music - 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: Script - Piano Music (/thread-40661.html)

Pages: 1 2 3


RE: Script - Piano Music - Spelos - 02-28-2016

@Mudbill
Ah, forgot that one... You're a saint...








Kinda forget things after two pages of replies... I think I forgot English as well... No offence


RE: Script - Piano Music - Abihishi - 02-29-2016

Thanks dude Smile You know have make invisible wall? which would not pass up further player just display a message .


RE: Script - Piano Music - Spelos - 02-29-2016

The invisible wall is an entity in
Entities > Technical > "Blockbox_char" or something similar.
In editor it looks like a pink box, but it's invisible in the game.

As for the message, you would add an area next to it and use
PHP Code:
AddEntityCollideCallback("Player""Area""Function"false1); 
and
PHP Code:
SetMessage("TextCategory""TextEntry"0); 

Just like this:
PHP Code:
void OnStart()
{
    
AddEntityCollideCallback("Player""Area""Function"false1);
}

void Function(string &in asParentstring &in asChildint alState)
{
    
SetMessage("TextCategory""TextEntry"0);




RE: Script - Piano Music - Abihishi - 02-29-2016

Thanks Man! Big Grin


RE: Script - Piano Music - Abihishi - 03-01-2016

Dude, you know how add mementos, when my character pick note?


RE: Script - Piano Music - Spelos - 03-01-2016

...

Sure

PHP Code:
void OnStart()
{
    
SetEntityPlayerInteractCallback("YourNoteEntityName""InteractionFunc"true);
}

void InteractionFunc(string &in asEntity)
{
    
AddQuest("QuestName""QuestTextEntry");




RE: Script - Piano Music - Abihishi - 03-01-2016

This three dots are ominous Big Grin


RE: Script - Piano Music - Spelos - 03-01-2016

Yea, I mean this could just as well be called: "Various Basic Scripting help" instead of "Piano Music", but sure, I don't mind.


RE: Script - Piano Music - Abihishi - 03-01-2016

Yep, but i does not want make million threads. BTW. this piano music still not work ( oh... god, please... tell him, in order to hence he came out because it is tiring). In this infinity music I mean music in intro but this is now work. Instead music in piano not work when my character "touch" script. Music is in format .ogg.