Denizen Message Format examples


Author: SpaceEmotion
Created: 2013-03-06T15:41:33-0500
Edited: 2013-03-06T15:41:33-0500
Denizen Version: 0.8.8
Views: 26
Downloads: 778
Likes: 0


WGET
Description: In the latest development versions Denizen features message formats.
Formats can be used to format the output text. Tired of copy-paste
narrator text? Then formats are the perfect way for you.
Just create a new format container and set the format for the specified message!

Quest Given:
  type: format
  format: "<&6>You got a new quest by <npc.name>: <&f><text><&6>!"

Quest Success:
  type: format
  format: "<&6>You successfully completed the <&f><text><&6> quest!"

Quest Fail:
  type: format
  format: "<&4>You failed at completing the <&f><text><&4> quest!"

Format test:
  type: assignment

  interact scripts:
  - 10 Narrate format test

Narrate format test:
  Type: Interact
  Steps:
    Default:
      Click Trigger:
        Script:
        - NARRATE "This is a default narrate text"
        - NARRATE "FORMAT:Quest Given" "Catch me if you can"
        - NARRATE "FORMAT:Quest Success" "Just another easy quest"
        - NARRATE "FORMAT:Quest Fail" "This is meant to be failing"




Comments
No one has posted a comment! Post one below: