Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
I can understand that people had issues porting this particular entity over to TDD, though it was quite fun to do I must admit. So here it is folks.
There are some things you need to know if you want to use this entity though.
There are 2 entities you must place in your level, one being the phone box itself, and the other being the green light entity. The light must have the same internal name as the phone appended with _light. Remember to set the default state to "unlit".
You must include the script below in each level you use the phone.
You could always script your own version of the phone, like if you need to tweak anything in the "internal" (so to speak) coding I did, feel free to do so, but for most applications, what I have should be perfectly fine.
First off, paste this script anywhere into your level's .hps file (for example at the very bottom). You're not required to read the script or know how it works, but it MUST be included if you wish to use the function below.
asEntity - The phone box entity. asAudioFiles - An array containing a list of all the audio files you wish to play when the phone is picked up. asSubCat - The .lang category for your subtitles. asSubEntries - An array containing a list of all the subtitle entries to display. I recommend it has the same length as the audio files. asCallback - A callback that is called when the entire phone sequence has finished.
If you're unsure how to use the arrays, create them like so:
Oh, and as for installation, you place the "phone_box" folder within the downloaded archive inside your Amnesia/entities/custom/ folder (create a custom folder if you wish).
Remember to also keep a copy of the phone box within your mod's or custom story's directories when you export it.