Skip to main content
MATalbo
Participant
October 13, 2023
Question

Custom Calculation script that uses multiple dropdown lists

  • October 13, 2023
  • 1 reply
  • 472 views

I have a rudimentary understanding of scripting; however, how do i assign numerical values to textual items in drop boxes to be used in variables for a calculation.

 

i.e. Dropdown1 includes (Dwarf = 10, Elf = 6, Human = 8); Dropdown2 includes (Bard = 6, Cleric = 6, Fighter = 10);

V1 = Dropdown1
V2 = Dropdown2

V3 = Level 

Total HP = V1 + [(V2+ "CON Modifier")V3]

I understand the basis of the script I just need assistiance on how to make the text in the dropdown correlate to a numerical variable.

Thank you for any assistance rendered.

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
October 13, 2023

Add numbers as export values to choices in dropdown.