Skip to content

INTRO command enables speech (and throws an error if settings.intro is undefined) (with fix) #139

@KVonGit

Description

@KVonGit

My current patch job:

  new Cmd('MetaIntro', {
    script:function() {
      if (typeof settings.intro === "string") {
        msg(settings.intro)
      }
      else if (typeof settings.intro === "array") {
        for (let el of settings.intro) msg(el)
      }
      else {
        msg ("This story has no intro.", {}, 'parser')
      }
      return world.SUCCESS_NO_TURNSCRIPTS
    },
  })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions