Skip to content

Scripting

NeumimTo edited this page Feb 15, 2022 · 4 revisions

There is multiple way to register custom content such as skills, or event listeners into the ntrpg plugin.

Java API NT-Script Denizen MagicSpells
Language Java,Kotlin,etc Yes Yes Yes
Execution Compiled Compiled Interpreted Interpreted
Distribution .jar .conf (text) .yml (text) .yml (text)
Reloading at runtime Yes Yes Yes Yes
Difficulty 4 2 1 1
Plugin dependencies None None Denizen MagicSpells

Java API

NT-Script

Denizen

Examples

File: Nt-RPG/skilltrees/testskilltree.conf

  Name: testskilltree
  Skills: [
    {
    SkillId: "ntrpg:denizen_test"
    Type: "denizen"
    Name: "DenizenTest"
    Description: [
      "Strucks enemy with lightning"
    ]
    SkillSettings: {
      some_setting_node: "7 + level"
    }
  }

File: Denizen/scripts/skills.dsc

skills:
    type: world
    debug: true
    events:
      on player casts skill id:denizen_test:
        - announce "Denizen will handle execution of <context.skill_id>"
        - announce "some_setting_node: value <context.skill_context.value[some_setting_node]>"

MagicSpells

Examples

todo

Clone this wiki locally