Soldak Home   Drox Operative   Din's Curse   Depths of Peril   Zombasite  

Go Back   Soldak Entertainment Forums > Zombasite > Zombasite modding
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2018, 10:14 PM
bala bala is offline
Amateur
 
Join Date: Feb 2018
Posts: 15
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
  #2  
Old 11-06-2018, 04:04 PM
Shadow's Avatar
Shadow Shadow is offline
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 8,725
Default

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.
__________________
Steven Peeler
Designer/programmer
Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, & Din's Legacy
Patreon
Reply With Quote
  #3  
Old 11-06-2018, 10:52 PM
bala bala is offline
Amateur
 
Join Date: Feb 2018
Posts: 15
Default

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+
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 06:51 AM.


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