Member
Join Date: Aug 2010
Posts: 50
|
I tried to search the forums for this answer, but I have not found a thread that matches what I am trying to do. So, if there already is a post that you are aware of for this, please link it here.
Goal: I am creating an Edge called Smart Fighter. This edge allows the character to link their Fighting and Shooting skills to their Smarts, rather than Agility. Is this possible? I thought about making new skills and not allowing the current ones, but I am not sure how I would link the weapons up to this new skill for their stat windows. Other than that I think the only other way to do this would be to "refund" (increase skill points to offset extra cost for low Agility score when buying into these skills) buy costs back to the character. |
#1 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
The only effect that the attribute has on a skill is the skill cost. I would leave the rest alone.
I have not looked yet at the actual coding, but I would have the edge use an Eval Script that compares the ratings of Agility and Smarts. If Smarts is higher, have it go off the higher rating. Otherwise it has no effect. Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
#2 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
Oh, and there is a problem with the refund. While it works at character creation (and it is an easy fix to put into the Eval script I mentioned), it would be a pain to mess with during Advancement. OF course, if it is a Creation Only edge that part is solved.
Edges that give a skill at d4 through bootstrapping have a similar problem. It is easy to offset the cost during creation mode, but it messes things up if the edge is taken at some point later on as it messes up the skill points during Advancement and you can't fix that (unless you unlock it). Interestingly enough you can bootstrap a free skill through advancement and it will not mess up skill points (if it is not off-set). Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
#3 |
Senior Member
Join Date: Jun 2010
Location: Florida
Posts: 239
|
Well, I created an Edge (Inspired by another game system) that did something similar. I called it Calculated Attacks. Uses Smarts as the linked attribute for Fighting.
The code: Quote:
|
|
#4 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
Well, that was easy. Thanks for sharing.
Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
#5 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
I hope you won't mind (let me know if you do) but I've added that code to the Common Code thread to help put it someplace else for folks to find it if that will help them, with attribution to you. Great find!
Lenny Zimmermann Metairie, LA, USA Data files authored (please let me know if you see any issues with any of these if you have/use them): Official (In the downloader) 50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome Coming Eventually Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me) |
#6 |
Member
Join Date: Aug 2010
Posts: 50
|
Thank you for the replies.
What I wound up doing in mine was to create new Skills called "Fighting (Smarts)" and "Fighting (Strength)" which were linked to the appropriate Attributes. I then kept this new skill and the original Fighting Skill in sync with each other. However, set the linkage was a lot shorter and easier. I will have to test that code out to see how it works when the edge is bought after skills have already been bought using the original linked Attribute. Fore example, let's I had a d10 in Smarts and a d6 in Agility, but I bought up to a d8 in Fighting before taking the edge (meaning I spent 2 skills points to go from the d6 to the d8). If after taking the edge that changed the linked Attribute, would that mean I would get a skill point back? If I already spent that point before taking the edge, I do not think that skill point should be refunded back to me. I will have to test your code to see how it works. I know that the other code is already above, but here is the code for me to keep the two Skills linked: Quote:
|
|
#7 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
If that does not work, a mechanic will.
Code:
if (hero.tagis[Edge.edgFightSmart] = 1) then perform hero.childfound[skFighting].setlinkage[attribute,Attribute,"thingid.attrSma" endif Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
#8 |
Member
Join Date: Aug 2010
Posts: 50
|
As I suspected, when I tried using the setlinkage code, skill points were refunded to me when I gained the edge.
In my example, I had an Agility of d6 and a Smarts of d8. During hero creation, I did not take Smart Fighter. However, I chose to increase my Fighting skill to a d8, which cost 2 skill points when I went from d6 to d8. During advancement, I took the Smart Fighter edge and once I did this, I had another skill point to spend since my double skill point cost to take Fighting to a d8 became a single skill point cost. I will have to play around with the code to see if I can figure out if there will be skill points refunded and adjust the characters allowed points. Thank you for showing me the setlinkage code though as it means I do not have to create a new skill now. |
#9 |
|
|