Soldak Entertainment Forums

Soldak Entertainment Forums (http://www.soldak.com/forums/index.php)
-   Zombasite modding (http://www.soldak.com/forums/forumdisplay.php?f=39)
-   -   Adding additional levels to some basic skills (http://www.soldak.com/forums/showthread.php?t=38002)

bala 11-05-2018 09:14 PM

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?

Shadow 11-06-2018 03: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 09:52 PM

Hello Shadow, thank you for replying as always! I tried the following based on what you mentioned:

Code:

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+


All times are GMT -4. The time now is 03:04 AM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 2019 Soldak Entertainment, Inc.