|
Senior Member
Join Date: Aug 2011
Posts: 131
|
I'm still working on the Lizardmen for Space 1889 and am still having trouble with the double cost for knowledge skills thing.
So far the only code I have found will allow a double cost for ability scores or specific skills, but not all knowledge skills. I could apply the code to all of the 1889 specific skills, since I had to create them anyway, but I still can't figure out how to apply it to all Knowledge skills. Does anyone have any ideas or insights? Thanks -Erich |
#1 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
If you can apply it so a specific skill, have you tried applying it to the skill "skKnow" and seeing if that works? Since it would apply to all Knowledge skills I would think that would cover it, right?
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) |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,550
|
For the starting point thing, you could do a foreach loop on thingid.skKnow at Traits/10000:
Code:
foreach pick in hero where "thingid.skKnow" perform #resspent[resSkill,+,1,"Hindrance Name"] nexteach For the other part, you need to create a mechanic that happens at Effects/1000 that does this: Code:
foreach pick in hero from Advance where "Skill.skKnow" eachpick.field[advCost].value *= 2 nexteach |
#3 |
Senior Member
Join Date: Aug 2011
Posts: 131
|
So, taking this a step further if say I wanted to make say, shooting, cost double would I script
Code:
perform #resspent[skShooting,+,1,"Hindrance Name"] Code:
foreach pick in hero from Advance where "Skill.skShooting" eachpick.field[advCost].value *= 2 nexteach |
#4 |
Senior Member
Join Date: Aug 2011
Posts: 131
|
OK,
The code works, sorta. Using Code:
foreach pick in hero where "thingid.skKnow" perform #resspent[resSkill,+,1,"Hindrance Name"] nexteach However if the skill is chosen more than once during creation say to knowledge skill 6, the cost is doubled for the first pick, but goes back to the lower cost for the next buy. And the code for making knowledge skills cost double on the advance Code:
foreach pick in hero from Advance where "Skill.skShooting" eachpick.field[advCost].value *= 2 nexteach Thanks -Erich |
#5 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
What if you put the second script in the Race instead of as a Mechanic? If that doesn't work you may have to just enclose your foreach loop in an if-then statement. So something like
Code:
if (hero.tagis[Race.racLizman] <> 0) then (your code) endif Not sure on the first part, though. Where are you putting the script? 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 |
Senior Member
Join Date: Aug 2011
Posts: 131
|
I'm putting it in the script section of the Racial Trait "Primitive" and setting it to traits/10000
-Erich |
#7 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
OH, I think I see it. In the first script it's looking for every Knowledge skill in the portfolio, but it's only checking for the existence of the skill, not the level of the skill. So instead of picking just "thingid.skKnow" it has to work from the values instead. So instead of putting a straight "+,1," you'd have to do it something like "+,eachpick.field[trtFinal].value,", I think. Oh, and I said put that second script on the Race, but actually I meant it should also go into the Racial Trait you decided to use as well, again though, I think that might work, but definitely let us know if it doesn't.
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) |
#8 |
Senior Member
Join Date: Aug 2011
Posts: 131
|
Well, It works as far as incrementing for each buy, but now it is assuming the base buy value is 3, instead of 2.
-edit- OK, after some further testing, what I am seeing is that the initial buy of a knowledge skill is costing 3 points and each raise is costing 2. Unless the skill is higher than Smarts, in which case it is costing 3. I think what needs to happen is that the initial buy and any raises should cost 2, and if the skill is over Smarts the raise should cost 4. -Erich Last edited by Erich; February 17th, 2013 at 08:57 AM. Reason: New info |
#9 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
Oh, the first part of that would be because a d4 trait value is 2, not 1 like you would need for the very 1st buy. Play with the logic a little and see if you can work through that and I'll try to think it over some more as well. You may also need to use a multiplier in there instead of a addition, maybe, to properly cover the greater skill/lesser skill thing.
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) |
#10 |
|
|