FNF-CNE-Devs / YoshiCrafterEngine

Apache License 2.0
24 stars 20 forks source link

Help: How to set available difficulties in story mode #327

Open NikRetaNCAM opened 2 years ago

NikRetaNCAM commented 2 years ago

What do you need help for ?

Please note that the documentation is still under construction.

for example, if week should be available on hard only?

BernardoGP4504 commented 2 years ago

for example, if week should be avaliable on hard only?

not only that but you can change the image of the difficulty. Just go into weeks.json then go into your week then find the "difficulties" property and open an array in it's value:

"difficulties": [],

then inside the array put this:

{
        "sprite": "mod:filepath",
    "name": "difficulty"
}

then change mod: into your mod's folder name then change the filepath to the file path of your custom difficulty image and change difficulty to the difficulty you want (first letter capitalized)

then put the code above inside the array like:

"difficulties": [
        {
                "sprite": "mod:filepath",
            "name": "difficulty"
        }
],

or if you use the code using fnf's difficulty image:

"difficulties": [
       {
           "sprite": "Friday Night Funkin':storymenu/difficulty",
           "name": "difficulty"
       }
],
NikRetaNCAM commented 2 years ago

image

  1. I dont see "difficulties" in here (tried Ctrl+F)
  2. Why does Yoshi Engine save my .json like this?
BernardoGP4504 commented 2 years ago

image

  1. I dont see "difficulties" in here (tried Ctrl+F)
  2. Why does Yoshi Engine save my .json like this?
  1. Then add it
  2. It's normal. You just wanna format the json to be normal (or enable automatic line break if using visual studio)