DICE PACKS BUNDLE
Page 2 of 2 First 12
  1. #11
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    18,142
    Blog Entries
    9
    Quote Originally Posted by Jiminimonka View Post
    You lost me at "the part I don't think.can be done"... 藍
    lol yea, well a lot of what I've done is trial and error to see what might work etc. I find the wiki article hard to follow and I don't learn well from videos. But Marmas and TJ certainly seem like they don't have my short comings on this topic so Besides, If I document here what I learn maybe it will be useful to others.

    Those it may already be obvious to others, I did some other fun little things with the story templates that I will share as well. This here is taking results from the rolled tables and performing math on it and having FG give results. Some of it works, and some doesn't. Specifically the second equation for Diameter doesn't work. Haven't figured this one out yet either, would love some suggestions

    Screenshot 2025-02-17 084122.png

    Works: [:2d10/10:diam]

    Does not Work:
    [: (1d100+40)/70:diamTwo]
    [:1d100+100:diamThree]
    [: (1d100+100):diamThree]
    [:[1d100+100]:diamThree]

    (where ": (" has extra space removed, forum changes it to sad face)
    Last edited by LordEntrails; February 17th, 2025 at 15:49.

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  2. #12
    Quote Originally Posted by LordEntrails View Post
    Does not Work:
    [: (1d100+40)/70:diamTwo]
    [:1d100+100:diamThree]
    [: (1d100+100):diamThree]
    [:[1d100+100]:diamThree]

    (where ": (" has extra space removed, forum changes it to sad face)
    For Forums using [ code ] shouldn't sub emojis.

    Code:
    [:(1d100+40)/70:diamTwo]
    [:1d100+100:diamThree]
    [:(1d100+100):diamThree]
    [:[1d100+100]:diamThree]

  3. #13
    tjlee's Avatar
    Join Date
    May 2021
    Location
    Pacific Northwest
    Posts
    38
    According to the CoreRPG documentation, the following works as expected:
    Code:
    [:?1d10:value]
    [<value>/2]
    As we see, the template evaluates as expected:
    Code:
    2.5
    However, this:
    Code:
    [:?1d10+40:value]
    [<value>/2]
    Results in:
    Code:
    :?1d10+3:value  <-- should not appear
    6.5
    In the above, it performs the assignment to value as expected but the ? hide directive doesn't have an effect.

    These expressions don't quite work as expected either:
    Code:
    [:?1d10+3:value]
    <value>             <--- only line that works properly
    [:<value>/2:divide]
    <divide>
    [:<value>+3:add]
    <add>
    Results:
    Code:
    :?1d10+3:value <-- should not appear
    10             <-- from <value>
    :10/2:divide   <-- should evaluate and assign to divide
    <divide>       <-- this shows up because it wasn't assigned
    :10+3:add      <-- should evaluate and assign to add
    <add>          <-- this shows up because it wasn't assigned
    Testing against my extension produces expected results:
    Code:
    10     <-- from <value>
    5      <-- from [:<value>/2:divide]
    5      <-- from <divide>
    13     <-- from [:<value+3:add]
    13     <-- from <add>
    I should note that the math calculations are delegated to CoreRPG DiceManager.evalDiceMathExpression(sDiceExpr)

    Code:
    [(10+3)/4/2]
    Evaluates to unexpected result: (seems to multiply by 2 instead of divide by 2 - (10+3) = 13, 13/4 = 3.25, 3.25/2 = 1.625, 3.25*2 = 6.5)
    Code:
    6.5
    But if you include additional parentheses, it computes correctly:
    Code:
    [((10+3)/4)/2]
    Evaluates to:
    Code:
    1.625
    Last edited by tjlee; February 18th, 2025 at 13:50.

Page 2 of 2 First 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Product Walkthrough Playlist

Log in

Log in