-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/ShadowMario/FNF-PsychEngine …
…into main
- Loading branch information
Showing
4 changed files
with
119 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
First you need to be aware about how the Dialogue file works: | ||
* Example: | ||
``` | ||
psychic:left bf:right | ||
:0:talk:0.05:normal:What brings you here so late at night? | ||
:1:talk:0.05:normal:Beep. | ||
:0:angry:0.05:angry:Drop the act already. | ||
:0:unamused:0.05:normal:I could feel your malicious intent the\nmoment you stepped foot in here. | ||
:1:talk:0.05:normal:Bep bee aa skoo dep? | ||
:0:talk:0.05:normal:I wouldn't try the door if I were you. | ||
:0:unamused:0.05:normal:Now... | ||
:0:talk:0.05:normal:I have a couple of questions to ask you... | ||
:0:angry:0.1:normal:And you WILL answer them. | ||
``` | ||
|
||
* The first line will define the characters you will use on the dialogue | ||
* First value is the character | ||
* Second value is the character's position ("left", "center" or "right") | ||
* You separate the characters by adding a space between them | ||
* It's important that you keep in mind their creation order, as it will be used on the dialogue lines's first value | ||
|
||
* Dialogue lines must start with a `:` and every value is separated by another `:`, the values are in the respective order: | ||
* Character speaking's ID (Based on character creation order) | ||
* Animation to use during this line | ||
* Text speed, default is 0.05 (20 characters per second) | ||
* Speech bubble type ("normal" or "angry") | ||
* Text. Warning! Don't use this kind of quote: `’`, use this instead: `'` | ||
|
||
________________________________________ | ||
With that in mind, we can now go to the next step, making your song trigger the dialogue. | ||
|
||
**1.** First off, you need to name your dialogue file as your song name + "Dialogue.txt". If my song is called `focus`, the dialogue file then should be named `focusDialogue.txt`. | ||
Place the dialogue file in the same folder as your charts and it should be ready to be loaded. | ||
|
||
**2.** Now, open PlayState.hx and go to line 971, you should be seeing this: | ||
|
||
![](https://i.imgur.com/udchEJX.png) | ||
|
||
Add your song to it and the dialogueIntro function, just like that: | ||
|
||
![](https://i.imgur.com/b7NCVrf.png) | ||
|
||
If you'd prefer a small delay (in this case, 0.8 seconds) before the dialogue starts, do this: | ||
|
||
![](https://i.imgur.com/Hop6fCg.png) | ||
|
||
You can also make the dialogue play a background music with it too! | ||
Instead of using `dialogueIntro(dialogue);` you just have to use `dialogueIntro(dialogue, 'your-music-name-here');`, make sure you file is inside the `music` folder of your week's loaded folder! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
🙂 **PART 1 - Adding it to Chart Editor** 🙂 | ||
|
||
**1.** Open ChartingState.hx and around Line 50 you will see the `eventStuff` array. | ||
|
||
![](https://user-images.githubusercontent.com/44785097/127798468-47d51a1c-ce0c-4d89-9ad9-405cf5f7254f.png) | ||
|
||
**2.** Add your new Event's name and description to it. | ||
|
||
😢 **PART 2 - Coding your event** 😢 | ||
|
||
**1.** Open PlayState.hx | ||
**2.** Search for the function named `triggerEventNote`, add a new case using your event's name and code your event's action there. | ||
|
||
![](https://user-images.githubusercontent.com/44785097/127798675-d56631da-6fb6-4926-b267-9f5f81ba4d91.png) | ||
|
||
**EXTRA.** Some events like "Kill Henchmen" are triggered earlier than their chart position (280ms earlier). | ||
If you want to do something similar, search for the function `eventNoteEarlyTrigger` and set a new case with your event's name and how many milliseconds earlier should it be triggered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
*On this Example, i will be adding a new difficulty called "Crazy", all charts for this difficulty should end with "-crazy".* | ||
|
||
🔥 **PART 1 - Adding the difficulty to the list** 🔥 | ||
|
||
This is probably the easiest part. | ||
Our difficulty will be called `Crazy`, and the chart suffix will be `-crazy` | ||
|
||
Open CoolUtil.hx inside `source/`, right at the start, you will see this array: | ||
|
||
![](https://i.imgur.com/NA2aIIH.png) | ||
|
||
So... add your new difficulty to it, like this. | ||
|
||
![](https://i.imgur.com/JMfoJI0.png) | ||
|
||
We're basically done with it, but now comes he boring part. | ||
|
||
👽 **PART 2 - Files** 👽 | ||
|
||
You will need the difficulty image for the Story mode menu, and you're also gonna have to do the Crazy difficulty chart to all songs. | ||
Here's my Crazy difficulty image for an example: | ||
|
||
![](https://i.imgur.com/mvaseyY.png) | ||
|
||
Put this image inside `assets/preload/images/menudifficulties/` with it being named `crazy.png` and we're ready to go! | ||
If you've done everything alright, it should be in and working properly! | ||
|
||
![](https://i.imgur.com/MDzP1PF.png) | ||
![](https://i.imgur.com/qHY7beU.png) | ||
|
||
That's all, folks. |