Editor - Double skill point cost
I'm creating a few custom skills using the editor. Does anyone know how I can make them cost double and not associate with any attribute? Is it some kind of eval script?
|
I found the following from the Common Code Examples thread:
Quote:
Any ideas? |
I also found code for Costly Attribute and Very Costly Attribute as Racial Properties and was wondering if anyone might know how I could tweak them to work for doubling the cost of the skill.
Costly Attribute is: Pre-Traits/5000 Code:
perform #resspent[resAttrib,+,(linkage[Attribute].field[trtUser].value - 3) + linkage[Attribute].field[trtCost].value,linkage[Attribute].field[name].text] Pre-Traits/5000 Code:
linkage[Attribute].field[trtCost].value += 1 Code:
linkage[Skill.skMyCustomSkill].field[trtCost].value += 1 |
Well, the relevant line from that middle post is only what is inside the foreach-nexteach lines, since those lines are trying to walk through the skills to just find the Knowledge ones. So the double cost part is:
Code:
eachpick.field[advCost].value *= 2 Code:
Skill.skMyCustomSkill[advCost].value *=2 |
First, thank you for your assistance. I have made changes and now I'm getting an error when I test that reads:
Syntax error in 'eval' script for Thing 'skMyCustomSkill' (Eval Script '#1') on line 1 -> Reference to undeclared variable: 'Skill' |
Oh, maybe you had to do it something like the following?
Code:
foreach pick in hero where "thingid.skMyCustomSkill" |
All times are GMT -8. The time now is 09:32 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.