This time around, it's Shadowrun 4th edition, and I'm picking up work where I had left off. I have a working dialog box, for adding skills and ranks to a character. Works lovely, However, I want to add another field to include the skill set that it's on (so I can do some convoluted stuff with it next, like decide from different macros for various things to roll dice on, particularly combat or non combat type stuff.) Add the drop down menu, and after a few wrenches, got it to put the drowdown menu for me. That looks like this:
Code: Select all
<!-- addSkill -->
[h: status = input(
"skillName|skill|Skill",
"skillRank|0|Rank",
"skillSet|Combat Active,Magical Active,Physical Active,Resonance Active,Social Active,Technical Active,vehicle Active,Street Knowledge,Academic Knowledge,Professional Knowledge,Interests Knowledge,Language Knowledge,|Skill Group|LIST|SELECT=0 VALUE=STRING"
)]
[h: abort(status)]
[h: assert(isNumber(skillRank), "You must enter a number for skill rank!")]
Code: Select all
[PCSkillsJson = json.set(PCSkillsJson, skillName,skillRank)]