Skip to content

Notch Currency 0.6.0

Choose a tag to compare

@FugginBeenus FugginBeenus released this 03 Aug 20:09
· 145 commits to main since this release

0.6.0: NPC Reactions

NPCs can now react to things that happen to them, not just to a dialogue choice being clicked.

New: Reactions

Open an NPC's editor → ManageReactions, pick a moment on the left, and list what should
happen on the right:

  • When talked to: runs before any dialogue or shop screen opens, so a greeting is read first
  • When a player comes near: fires once as they walk up and re-arms when they leave; the range is
    adjustable
  • When hurt: fires even if the NPC is protected from the damage, so a shopkeeper can object to
    being punched
  • When killed: may have nobody attached; lava counts
  • When it kills something

Each moment runs up to five actions: say a line, pay or charge coins, give an item, or
run a command. Lines take the same %player%, %npc% and %balance% placeholders and & colour
codes as dialogue.

Reactions are saved with the NPC. They travel in the pick-up item and in presets, so a greeter you
build once can be stamped into any world.

"Say a line" is now available as a dialogue choice action as well.

Security

  • Actions that create value (paying coins and giving items) now require operator permission,
    the same as the command actions always have. Before this, any NPC owner could write a dialogue choice
    that paid whoever clicked it, which on a public server is an unlimited money supply. Charging coins is
    untouched and still available to every shop owner, so toll gates and entry fees work as before.
  • Existing dialogue that already used those actions keeps running until that NPC is next saved.