Senior Member
Join Date: Jun 2010
Location: Florida
Posts: 257
|
Okay, this is the objective. The arcane skill used to "cast" modifies the amount of Power Points based on the skill level.
d4 Skill = 2 starting power points d6 Skill = 3 power points d8 Skill = 4 power points etc. The character can ALSO still take the Edge Power Points for even more additional PP. So I have a script that is not quite getting what I want: Code:
foreach pick in hero where "component.Arcane" var powbonus as number powbonus = hero.tagis[Skill.skCBDeepConnect] debug powbonus ~ Half Deep Connection die in Power Points eachpick.field[resMax].value += powbonus nexteach Code:
hero.tagis[Skill.skCBDeepConnect] |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,568
|
The element 'tagis' will give you a 0 or a 1 based on whether the tag is there or not.
Try powbonus = #traitfound[skFighting] Normally a trait value is half the die value, which is just what you're after. And using traitfound won't cause an error if the skill isn't on the hero. _ Currently In Development: Savage Pathfinder, SWADE Fantasy Companion Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion _ Currently Running: Savage Unity Inc. (homebrew multiverse theme) Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane Future Setting Files: Savage Judge Dredd |
#2 |
Senior Member
Join Date: Jun 2010
Location: Florida
Posts: 257
|
Thanks Caped, that worked. I also needed to adjust the timing. If anyone interested, here is the working code:
Code:
foreach pick in hero where "component.Arcane" var powbonus as number powbonus = #traitfound[skSpellcst] debug powbonus ~ Half Deep Connection die in Power Points eachpick.field[resMax].value += powbonus nexteach You replace the "skill" with whatever appropriate arcane skill. And make sure Number of Powers is 0. Or you could use this to add bonus Power Points I guess |
#3 |
Thread Tools | |
Display Modes | |
|
|