Advertisement
zxvf

HP/MANA/MOVE skill gains calculator

Nov 14th, 2012
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #CLASS {Skills}
  2. #ALIAS help {~help %-1;#if (%-1 = "classes") {#class Skills;#state skills_cond 0;#T+ "skills_cond"}}
  3. #ALIAS prac {~prac %-1;#if (%-1 = "") {#class Skills;#T+ "Skills_practice_start"}}
  4. #VAR Divisor {9}
  5. #VAR WarriorBonus {12|0|0}
  6. #VAR ThiefBonus {9|0|12}
  7. #VAR DruidBonus {6|6|3}
  8. #VAR ClericBonus {0|6|0}
  9. #VAR MageBonus {0|6|0}
  10. #VAR class {}
  11. #VAR classSkills {}
  12. #VAR skillsLine {}
  13. #VAR practiceSkills {}
  14. #VAR practiceSkill {}
  15. #VAR skill_percent {00}
  16. #VAR H {0}
  17. #VAR M {0}
  18. #VAR V {0}
  19. #TRIGGER "Skills_blankline" {$} {#if (@class = "Druid") {#state skills_cond 0;#t- "skills_cond"} {#STATE skills_cond 1};#t- "Skills_blankline"} "" {notrig|disable}
  20. #TRIGGER "skills_cond" {^CLASSES$} {#var Skills/class {};#var Skills/classSkills {};#var Skills/SkillsLine {}} "" {disable}
  21. #COND {^({Warrior|Cleric|Mage|Druid|Thief})-$} {#var Skills/class {%1};#t+ "Skills_blankline";#state skills_cond 2} {disable}
  22. #COND {^(%w)} {#var Skills/skillsLine {%replace( %replace( %lower( %line), ", ", |), ",", "")};#DELI Skills/skillsLine %null;#pri {#FORALL @Skills/skillsLine {#addkey classSkills {%i} {@Skills/class}}}} {manual|disable}
  23. #REGEX "Skills_practice_capture" {^\w[\w\s]+\s[\s\[]} {#pri {Skills/practiceSkills=@Skills/practiceSkills%replace( %subregex( %lower( %line), "\]\s*", "]|"), "[", ".")}} "" {notrig|disable}
  24. #TRIGGER "Skills_practice_end" {^You have (%n) practice sessions remaining.$} {#class Skills;#t- "Skills_practice_end";#t- "Skills_practice_capture";practiceSkills=%dups( @practiceSkills);#deli practiceSkills %null;#var practiceSkill {};#var skill_percent {0};#var H 0;#var M 0;#var V 0;#forall @practiceSkills {#noop %match( %i, "(*)%s.(%d)", practiceSkill, skill_percent);#var practiceSkill {%trim( @practiceSkill)};#add H {%if( @skill_percent>=90, %item( @{%db( @classSkills, @practiceSkill)Bonus}, 1))%if( @skill_percent<90 AND @skill_percent>=50, %eval( %item( @{%db( @classSkills, @practiceSkill)Bonus}, 1)/2))};#add M {%if( @skill_percent>=90, %item( @{%db( @classSkills, @practiceSkill)Bonus}, 2))%if( @skill_percent<90 AND @skill_percent>=50, %eval( %item( @{%db( @classSkills, @practiceSkill)Bonus}, 2)/2))};#add V {%if( @skill_percent>=90, %item( @{%db( @classSkills, @practiceSkill)Bonus}, 3))%if( @skill_percent<90 AND @skill_percent>=50, %eval( %item( @{%db( @classSkills, @practiceSkill)Bonus}, 3)/2))}};#SUB {You have %ansi(high,yellow)%1%ansi(green) practice sessions remaining.%ansi(high,red) +%eval( @H/@Divisor)hp%ansi(high,blue) +%eval( @M/@Divisor)mana%ansi(high,green) +%eval( @V/@Divisor)move};#class 0} "" {disable}
  25. #TRIGGER "Skills_practice_start" {You can learn the following skills and spells:$} {#class Skills;#t- "Skills_practice_start";#T+ "Skills_practice_capture";#T+ "Skills_practice_end";#var Skills/practiceSkills {};#var Skills/H {0};#var Skills/M {0};#var Skills/V {0}} "" {disable}
  26. #CLASS 0
  27. #ECHO IMPORT IT, DON'T PASTE IT INTO THE COMMAND LINE. WON'T COPY INTO NOTEPAD CORRECTLY IF YOu HIT THE COPY BuTTON(pastebin). Copy the raw paste.
  28. #ECHO Now, to start, after you've imported the script, type 'help classes', then anytime you type 'prac', it will report the hp/mana/move gains your skills contribute.
  29. help classes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement