Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Working on a class ability that upgrades a racial spell-like ability to At-Will from 1/day I've set this up:
Code:
~ If our Charisma is < 11, we're disabled if (#attrvalue[aCHA] < 11) then perform assign[Helper.SpcDisable] else perform hero.findchild[BaseSpell,"Helper.SpellLike & Target.spDeteMag0 & Custom.FaenSpell"].tagreplace[Usage.?,Usage.AtWill] endif |
#1 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
Are you trying to make the change on the fly, or between games? I don't think you can make a change like that on the fly without reloading the game system.
If you are making so, like between level 3 and 4, they get this ability upgrade, maybe you could just create 2 abilities that are nearly the same but one is 1/day and te other is at will. Web site - Cheese Weasel Logistics - www.cheeseweasel.net Twitter - @CheeseWeaselGMZ For user created content check out www.d20pfsrd.com and www.cheeseweasel.net For video demos of Hero Lab go to http://www.youtube.com/user/TheChiefweasel?blend=9&ob=5 |
#2 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I should also mention this is running at Post-Attributes/10000
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,215
|
Why does this need a script to assign Usage.AtWill? If it's not at that point, it's disabled, so why not leave the AtWill tag there all the time?
|
#4 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Huh, for some reason it was giving me two copies of Detect Magic (sp) 1 was 1/day the other didn't have usage show up. I re-copied and pasted my code and it works now. I'm confused, but it's fine because it's working.
|
#5 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
Woot then, lol.
Web site - Cheese Weasel Logistics - www.cheeseweasel.net Twitter - @CheeseWeaselGMZ For user created content check out www.d20pfsrd.com and www.cheeseweasel.net For video demos of Hero Lab go to http://www.youtube.com/user/TheChiefweasel?blend=9&ob=5 |
#6 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Sadly more problems have crept up.
So I made a duplicate of detect magic, changed all the references from detect magic to charm person. Eval script: Post-Attributes/10000 Code:
~ If our Charisma is < 11, we're disabled if (#attrvalue[aCHA] < 11) then perform assign[Helper.SpcDisable] perform hero.findchild[BaseSpell,"Helper.SpellLike & Target.spCharPer1 & Custom.FaenSpell"].assign[Hide.Spell] endif I'm really confused why it would work for one SLA and not another. |
#7 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I feel dumb ... so I had something bootstrapped the wrong way and that's why I was seeing Detect Magic when I actually shouldn't have (it got bootstrapped directly to the class instead of on to the custom ability)
|
#8 |
|
|