PDA

View Full Version : Adding additional levels to some basic skills


bala
11-05-2018, 10:14 PM
I wanted make the health-per-vitality, attack/defense-per-dexterity skills upgradable by adding a new skill like the one below (similar to other skills)

SkillBonusAttackPerDexAdvancedBasicPerLevel
{
Base BaseSkillPerLevel
StatChangePerAttributeChange 0.5
}
SkillBonusAttackPerDexAdvancedBasic
{
Base BaseSkillPassive
BaseName $$AttackBonus$$
Desc $$AttackBonusDesc$$
TextureName Textures/Icons/Skills/attackBonus.tga
StatChangePerAttributeStat Attack
StatChangePerAttributeStat Defense
StatChangePerAttributeAttribute Dexterity
StatChangePerAttributeChange 0.5 //1.0
BaseCost 8
PerLevel SkillBonusAttackPerDexAdvancedBasicPerLevel
}

But the skill works only for the first level, and does not increase the bonus for further levels... Is there a different way I should be adding this skill?

Shadow
11-06-2018, 04:04 PM
I do something similar to that in Din's Legacy. The only differences I see is that I don't think you can do 2 StatChangePerAttributeStat in one skill and for some reason I have StatChangePerAttributeStat & StatChangePerAttributeAttribute defined in the PerLevel entry also.

bala
11-06-2018, 10:52 PM
Hello Shadow, thank you for replying as always! I tried the following based on what you mentioned:

SkillBonusHealthPerVitAdvancedBasicPerLevel
{
StatChangePerAttributeStat MaxHealth
StatChangePerAttributeAttribute Vitality
StatChangePerAttributeChange 0.25 //0.50
}

SkillBonusHealthPerVitAdvancedBasic
{
Base BaseSkillAdvancedBasic
BaseName $$HealthBonus$$
Desc $$HealthBonusDesc$$
TextureName Textures/Icons/Skills/health.tga
StatChangePerAttributeStat MaxHealth
StatChangePerAttributeAttribute Vitality
StatChangePerAttributeChange 0.25 //0.50
PerLevel SkillBonusHealthPerVitAdvancedBasicPerLevel
BaseCost 1
}

But it still did not work :( It does not give any bonuses for level 2+