Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old December 1st, 2010, 09:00 AM
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
bodrin is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old December 1st, 2010, 09:02 AM
Assign the SkillOver.aCHA tag to each of the wisdom-based spells.
Mathias is online now   #2 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old December 1st, 2010, 09:29 AM
Quote:
Originally Posted by Mathias View Post
Assign the SkillOver.aCHA tag to each of the wisdom-based spells.
Whats the syntax for that script, is there a reference that I can view in the data files?

Is it an If then else statement?
bodrin is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old December 1st, 2010, 09:38 AM
How would you normally search for all wisdom-based skills?
Mathias is online now   #4 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old December 1st, 2010, 10:00 AM
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.
bodrin is offline   #5 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old December 1st, 2010, 10:56 AM
How would you search for all skills?
Mathias is online now   #6 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old December 1st, 2010, 11:42 AM
Quote:
Originally Posted by Mathias View Post
How would you search for all skills?
Still no idea at the moment, just dug my car out of a foot of snow, absolutely shattered and cold.

Possibly try Hero.Childfound to search for the skills then try a perform?
bodrin is offline   #7 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old December 1st, 2010, 01:12 PM
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.
Lawful_g is offline   #8 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old December 1st, 2010, 02:30 PM
Thanks for the tip Lawful, I will see if I can cobble something out of the existing codes.
bodrin is offline   #9 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old December 2nd, 2010, 11:34 AM
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
Attached Images
File Type: jpg Test Charisma template.jpg (203.5 KB, 1 views)
bodrin is offline   #10 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:53 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.