Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. [h:cboSkillList="Acrobatics, Athletics, Blend, Bluff, Crafting, Disguise, Haggle, Impress, Intimidate, Investigate, Medicine, Notice, Prestidigitation, Resolve, Ride, Search, Sense Motive, Sneak, Survival, Tactics"]
  2. [h:cboAtrList="STR, DEX, CON, INT, WIS, CHA"]
  3. [h:boolStatus=input(
  4. "strSkill|"+cboSkillList+"|Skill|LIST|SELECT=0 VALUE=STRING",
  5. "strGovAtr|"+cboAtrList+"|Attribute|LIST|SELECT=0 VALUE=STRING")]
  6. [h,if(strGovAtr == "STR"): skillMod = Str + CompBonus]
  7. [h,if(strGovAtr == "DEX"): skillMod = Dex + CompBonus]
  8. [h,if(strGovAtr == "CON"): skillMod = Con + CompBonus]
  9. [h,if(strGovAtr == "INT"): skillMod = Int + CompBonus]
  10. [h,if(strGovAtr == "WIS"): skillMod = Wis + CompBonus]
  11. [h,if(strGovAtr == "CHA"): skillMod = Cha + CompBonus]
  12. [h: intRoll = 1d20]
  13. [h: intTotal = intRoll + skillMod]
  14. [h: strOutput = strSkill + ": " + intRoll + " + " + skillMod + " = " + intTotal]
  15. [r: strOutput]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement