~hristoast/tes3mp-yam

Yet Another MOTD script for TES3MP
Only one handler is needed, clarify the model a bit

clone

read-only
https://git.sr.ht/~hristoast/tes3mp-yam
read/write
git@git.sr.ht:~hristoast/tes3mp-yam

You can also use your local clone with git send-email.

#YAM

Requires DataManager!

Yet Another MOTD script for TES3MP.

This should be considered a sample project structure for a script that allows user-configuration with DataManager, as well as event hooks.

#Installation

  1. Place this repo into your CoreScripts/scripts/custom/ directory.

  2. Add the following to CoreScripts/scripts/customScripts.lua:

     ...
     -- DataManager needs to before YAM, like this
     DataManager = require("custom/DataManager/main")
    
     require("custom/tes3mp-yam/main")
    
  3. Ensure that DataManager loads before this mod as seen above.

  4. Optionally configure YAM by editing the CoreScripts/data/custom/__config_YAM.json file (see below).

#Configuration

  • btnText

String. Text to show for the confirmation button. Default: OK

  • chatOnly

Boolean. Whether or not to only print the MOTD in the chat box. Default: false

  • motd

String. The MOTD to print. Default: #008000This is the default MOTD for YAM!\n\nYou should change it.#FFFFFF

  • showInChat

Boolean. Whether or not to also print the MOTD in the chat box. Default: false