Unlimited Battle Dialogue Length

If you liked this item, please rate it up on Steam Workshop page.

Author: Phillip

Last revision: 1 Sep, 2024 at 22:42 UTC

File size: 75.17 KB

On Steam Workshop

Description:

Surprised that this was never made, so here it is.

Makes the character limit for battle dialogue (probably) infinite: Now your OC can yap with style!

Shoutout to Project Moon Community Hub Discord and Cyaminthe for writing the code and handholding me though the whole process.

Here is code. (idk why no spaces). Note that you will need a publicizer for Unity.TextMeshPro.dll

https://imgur.com/a/krafs-publicizer-dummies-FxTU1nD

class Initializer : ModInitializer
{
public override void OnInitializeMod()
{
var checkerObject = new GameObject("LimitChecker");
UnityEngine.Object.DontDestroyOnLoad(checkerObject);
checkerObject.AddComponent<LimitChecker>();
}

class LimitChecker : MonoBehaviour
{
void Update()
{
if (UICustomizePopup.Instance)
{
UICustomizePopup.Instance.scriptPanel.inputField.characterLimit = 0;
Destroy(gameObject);
}
}
}
}