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
Script - Piano Music
Spelos Away
Banned

Posts: 231
Threads: 19
Joined: Sep 2014
#21
RE: Script - Piano Music

@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
02-28-2016, 08:12 PM
Find
Abihishi Offline
Junior Member

Posts: 44
Threads: 8
Joined: Feb 2016
Reputation: 0
#22
RE: Script - Piano Music

Thanks dude Smile You know have make invisible wall? which would not pass up further player just display a message .
02-29-2016, 05:35 PM
Find
Spelos Away
Banned

Posts: 231
Threads: 19
Joined: Sep 2014
#23
RE: Script - Piano Music

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: (Select All)
AddEntityCollideCallback("Player""Area""Function"false1); 
and
PHP Code: (Select All)
SetMessage("TextCategory""TextEntry"0); 

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

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

02-29-2016, 07:41 PM
Find
Abihishi Offline
Junior Member

Posts: 44
Threads: 8
Joined: Feb 2016
Reputation: 0
#24
RE: Script - Piano Music

Thanks Man! Big Grin
02-29-2016, 08:11 PM
Find
Abihishi Offline
Junior Member

Posts: 44
Threads: 8
Joined: Feb 2016
Reputation: 0
#25
RE: Script - Piano Music

Dude, you know how add mementos, when my character pick note?
03-01-2016, 05:14 PM
Find
Spelos Away
Banned

Posts: 231
Threads: 19
Joined: Sep 2014
#26
RE: Script - Piano Music

...

Sure

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

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

(This post was last modified: 03-01-2016, 05:21 PM by Spelos.)
03-01-2016, 05:19 PM
Find
Abihishi Offline
Junior Member

Posts: 44
Threads: 8
Joined: Feb 2016
Reputation: 0
#27
RE: Script - Piano Music

This three dots are ominous Big Grin
03-01-2016, 05:44 PM
Find
Spelos Away
Banned

Posts: 231
Threads: 19
Joined: Sep 2014
#28
RE: Script - Piano Music

Yea, I mean this could just as well be called: "Various Basic Scripting help" instead of "Piano Music", but sure, I don't mind.
03-01-2016, 05:54 PM
Find
Abihishi Offline
Junior Member

Posts: 44
Threads: 8
Joined: Feb 2016
Reputation: 0
#29
RE: Script - Piano Music

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.
03-01-2016, 06:53 PM
Find




Users browsing this thread: 2 Guest(s)