I ran across this tonight and I'm looking for the right syntax here. I probably have a type mismatch.
Code: Select all
<property>
<description>Hit Dice for this class.</description>
<script>(if(eq(class, 1), "1d10", (if(eq(class, 2), "1d6", (if(eq(class, 3), "1d6", (if(eq(class, 4), "1d8", (if(eq(class, 5), "1d10", "NA"))))))))))</script>
</property>
roll (1, 6)
roll (1, 10)
Clearly I have stumbled across something I don't know how to use
-David