Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
I have a template that changes a number of the skills to other modifiers for example Charisma for all Wisdom based skills.
How do I switch out the original ability modifier to the new one? Thanks in advance! Bodrin |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Assign the SkillOver.aCHA tag to each of the wisdom-based spells.
|
#2 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
How would you normally search for all wisdom-based skills?
|
#4 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
No idea.
I haven't had cause to try it until now! I've looked through the manual at the Skills section and have seen this kAttrValue, the manual itself is helpful regarding macros to add bonuses to skills but I just want to swap out the base ability used to determine the skills, not to add a bonus. |
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
How would you search for all skills?
|
#6 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
|
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
Use a foreach statement and then it gets a little strange.
foreach pick on hero from Baseskill will iterate through each skill on the hero. Unfortunately, the skills don't have their associated stat as a tag on them. You will have to look through the linkage to see what skill is there. For an example look at the Circlet of Persuasion for the linkage code. Take that and modify it to an "If the linkage is this, then assign whatever tag" form. |
#8 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Thanks for the tip Lawful, I will see if I can cobble something out of the existing codes.
|
#9 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Okay, i've cobbled together a test script to alter the ability used to determine a skill.
I've chosen Charisma to replace Constitution. However the script seems to work but not in the way I thought it would. When I alter the Charisma score all the skills get altered instead of Concentration. Weird!!! I recall somewhere that an exclamation mark ! means something in programming speak but I can't remember where it was. Whats wrong with this script?? Screenshot of test character attached with and without charisma modifier. Code:
~ Make the Concentration skill use the Charisma Ability modifier instead of Constitution foreach pick in hero from BaseSkill where "!thingid.kConcent" perform eachpick.assign[SkillOver.aCHA] nexteach |
#10 |
|
|