DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:randomtables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:randomtables [2023-04-14 05:35] omeridaplugin:randomtables [2023-10-31 01:03] (current) Klap-in
Line 6: Line 6:
 email      : oscar@oscarm.org  email      : oscar@oscarm.org 
 type       : syntax type       : syntax
-lastupdate : 2023-04-13 +lastupdate : 2023-07-20 
-compatible : 2023-04-04 "Jack Jackrum"+compatible : Jack Jackrum
 depends    : sqlite depends    : sqlite
 tags       : rpg, tables tags       : rpg, tables
Line 50: Line 50:
 </code> </code>
  
-An entry in your table can also include one or more results from other tables with the following syntax.+Any entry in your table can also include one or more results from other tables with the following syntax. You can also make a table with a single result to pick from.
  
 <code> <code>
Line 58: Line 58:
 </code> </code>
  
 +Now, you can also add a Select element to pick a table to roll on. Each new line can be a table identifier, or a table identifier and more readable label to show users.
 +
 +<code>
 +<ROLL_PICK 
 +    card_suit:Card Suit 
 +    2:Table2
 +    3:Table3
 +    4:TableTable4
 +    5:Final Table
 +>
 +</code>
 +
 +Another option is to show a strip of buttons above the results area.
 +
 +<code>
 +<ROLL_MULTI 
 +    card_suit:Card Suit 
 +    2:Table2
 +    3:Table3
 +    4:TableTable4
 +    5:Final Table
 +>
 +</code>
  
 ===== Development ===== ===== Development =====
Line 68: Line 91:
   * **2022-11-23**   * **2022-11-23**
     * Initial release     * Initial release
 +  * **2022-07-19** 
 +    * Added select+button markup. Escaped output sent to browser. 
  
 ===== Discussion ===== ===== Discussion =====
plugin/randomtables.1681443344.txt.gz · Last modified: by omerida

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki