Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #CLASS {Skills}
- #ALIAS help {~help %-1;#if (%-1 = "classes") {#class Skills;#state skills_cond 0;#T+ "skills_cond"}}
- #ALIAS prac {~prac %-1;#if (%-1 = "") {#class Skills;#T+ "Skills_practice_start"}}
- #VAR Divisor {9}
- #VAR WarriorBonus {12|0|0}
- #VAR ThiefBonus {9|0|12}
- #VAR DruidBonus {6|6|3}
- #VAR ClericBonus {0|6|0}
- #VAR MageBonus {0|6|0}
- #VAR class {}
- #VAR classSkills {}
- #VAR skillsLine {}
- #VAR practiceSkills {}
- #VAR practiceSkill {}
- #VAR skill_percent {00}
- #VAR H {0}
- #VAR M {0}
- #VAR V {0}
- #TRIGGER "Skills_blankline" {$} {#if (@class = "Druid") {#state skills_cond 0;#t- "skills_cond"} {#STATE skills_cond 1};#t- "Skills_blankline"} "" {notrig|disable}
- #TRIGGER "skills_cond" {^CLASSES$} {#var Skills/class {};#var Skills/classSkills {};#var Skills/SkillsLine {}} "" {disable}
- #COND {^({Warrior|Cleric|Mage|Druid|Thief})-$} {#var Skills/class {%1};#t+ "Skills_blankline";#state skills_cond 2} {disable}
- #COND {^(%w)} {#var Skills/skillsLine {%replace( %replace( %lower( %line), ", ", |), ",", "")};#DELI Skills/skillsLine %null;#pri {#FORALL @Skills/skillsLine {#addkey classSkills {%i} {@Skills/class}}}} {manual|disable}
- #REGEX "Skills_practice_capture" {^\w[\w\s]+\s[\s\[]} {#pri {Skills/practiceSkills=@Skills/practiceSkills%replace( %subregex( %lower( %line), "\]\s*", "]|"), "[", ".")}} "" {notrig|disable}
- #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}
- #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}
- #CLASS 0
- #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.
- #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.
- help classes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement