View Single Post
  #1  
Old 11-05-2018, 10:14 PM
bala bala is offline
Expert
 
Join Date: Feb 2018
Posts: 25
Default Adding additional levels to some basic skills

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)

Code:
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?
Reply With Quote