All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
2.9 KiB

1 year ago
  1. <article class="dfal-help"><h1>How to use the /log command</h1>
  2. {{#if isGM}}
  3. <section style="background-color:rgba(255,128,0,0.2);padding:0.5em;margin-right:0.5em"><h3><b>GM Only Info</b></h3><h2>Adventure Log Setup</h2><p>As a shortcut, you can use the following command to open the Adventure Log Config.</p><code>/log config</code><h2>GM Only Adventure Log</h2><p>You can replace <code>/log</code> with <code>/gmlog</code> for all of the below commands to add those events/quotes to the configured GM Only Adventure Log. If chat messages are turned on, GM Log entries will <b>always</b> be posted as <b>whispers</b> to yourself.</p><code>
  4. /gmlog message...<br>
  5. /gmlog e message...<br>
  6. /gmlog event message...<br>
  7. /gmlog q "Bobby McFerrin" message...<br>
  8. /gmlog quote "Bobby McFerrin" message...
  9. </code></section>
  10. {{/if}}
  11. <h2>General Event (default)</h2>
  12. <p>Logs a simple event message to the adventure log.</p>
  13. <table><tr><td>Command</td><td><code>/log ...message<br />/log e ...message<br />/log event ...message</code></td></tr><tr><td>Output To Chat</td><td><code>Event Logged<br />message...</code></td></tr><tr><td>Output to Log </td><td><code>[<span class="dfal-ts">&lt;YYYY-MM-DD HH:mmPM&gt;</span>] (<span class="dfal-na">&lt;LoggerName&gt;</span>) <span class="dfal-ev">message...</span></code></td></tr><tr><td>Example</td><td><code>Susan: /log We killed a goblin!</code><br/><code>[<span class="dfal-ts">2021-02-12 4:35PM</span>] (<span class="dfal-na">Susan</span>) <span class="dfal-ev">We killed a goblin!</span></code></td></tr></table>
  14. <h2>Quote Something</h2>
  15. <p>Formats an event entry as a quote of the given "Source". Source can be any text, such as the name of a player or NPC. Or maybe something funny someone said!</p>
  16. <table><tr><td>Command</td><td><code>/log q "Source" ...quote<br />/log quote "Source" ...quote</code></td></tr><tr><td>Output To Chat</td><td><code>&lt;LoggerName&gt; quoted &lt;Source&gt;<br />...quote</code></td></tr><tr><td>Output to Log</td><td><code>[<span class="dfal-ts">&lt;YYYY-MM-DD HH:mmPM&gt;</span>] (<span class="dfal-na">&lt;LoggerName&gt;</span>) &lt;Source&gt; said: <span class="dfal-qu">"quote..."</span></code></td></tr></table>
  17. <p>You do not need to add quotes around the Source Name, unless there are spaces in the name. Such as the following:</p><code>/log q Bobby McFerrin Don't worry, be happy!</code><p>Will output into the log</p><code>[<span class="dfal-ts">2021-02-12 4:35PM</span>] (<span class="dfal-na">Susan</span>) Bobby said: <span class="dfal-qu">"McFerrin Don't worry, be happy!"</span></code>
  18. <p>Instead if you add quotes around the name, it will allow the spaces.</p><code>/log q "Bobby McFerrin" Don't worry, be happy!</code><p>Will output into the log</p><code>[<span class="dfal-ts">2021-02-12 4:35PM</span>] (<span class="dfal-na">Susan</span>) Bobby McFerrin said: <span class="dfal-qu">"Don't worry, be happy!"</span></code>
  19. </article>