Divinity Banner
Previous Thread
Next Thread
Print Thread
changing skill names and descriptions of skills #563777
03/03/15 02:56 PM
03/03/15 02:56 PM
Joined: Jan 2015
Posts: 86
K
karlgoran Offline OP
journeyman
karlgoran  Offline OP
journeyman
K

Joined: Jan 2015
Posts: 86
without changing the core game (going into the localization folder and changing the english file). I just need a definitive yes or no on this so i can move on with the mod, anyone knows?

Re: changing skill names and descriptions of skills [Re: karlgoran] #563783
03/03/15 06:27 PM
03/03/15 06:27 PM
Joined: Sep 2014
Posts: 37
Z
Zoltan Offline
apprentice
Zoltan  Offline
apprentice
Z

Joined: Sep 2014
Posts: 37
You can give custom skills name and descriptions but you can't change the names and descriptions of skills already in the main game. You can make clones of those abilities and gives those new names and descriptions

Re: changing skill names and descriptions of skills [Re: karlgoran] #563792
04/03/15 04:30 AM
04/03/15 04:30 AM
Joined: Jan 2015
Posts: 86
K
karlgoran Offline OP
journeyman
karlgoran  Offline OP
journeyman
K

Joined: Jan 2015
Posts: 86
you sure it's that sraightforward? This setup for example:

original spell:

new entry "Projectile_FlareStart"
type "SkillData"
data "SkillType" "Projectile"
data "Ability" "Offensive"
data "Element" "Fire"
data "ActionPoints" "8"


duplicate:

new entry "Projectile_FlareStart2"
type "SkillData"
data "SkillType" "Projectile"
data "Ability" "Offensive"
data "Element" "Fire"
data "ActionPoints" "4"


SkillSet.txt:

new skillset "Class_Wizard"
add skill "Projectile_FlareStart2""
add skill "Target_TargetedOilSurface"
add skill "Projectile_PoisonDartStart"
add skill "Projectile_StaffOfMagus"

Works in so far that i get the duplicate spell available in the game when i'm a wizard, but no changes that i make to stuff like action points in the duplicate spell has any impact on the game, only changes to the regular spell has any effect. I can't remove the original spell either without making the spell unusuable. How do i sort of disconnect the two from each other?

Re: changing skill names and descriptions of skills [Re: karlgoran] #563799
04/03/15 10:49 AM
04/03/15 10:49 AM
Joined: Jul 2014
Posts: 459
R
Rhidian Offline
addict
Rhidian  Offline
addict
R

Joined: Jul 2014
Posts: 459
Are you sure that you're getting the duplicate spell then? Because it should be working if you start the game as a Wizard. Try setting the Element to Water and see if it shows up in the Hydrophist school.

I know I have made a duplicate skill or two back when I was messing around with skills, such as a modified Lava Core for my "Painting the World Red" thread, and maybe for my Purchasable Skillbooks mod. If you want the skill to truly replace the other, you will need to have the normal Skillbook point to your new skill as well.

Re: changing skill names and descriptions of skills [Re: karlgoran] #563825
04/03/15 09:25 PM
04/03/15 09:25 PM
Joined: Sep 2014
Posts: 37
Z
Zoltan Offline
apprentice
Zoltan  Offline
apprentice
Z

Joined: Sep 2014
Posts: 37
I believe that would work but I highly recommend using the excel files Larian provides to do your skill modding. It lays out everything you need while the txt files will get much more difficult to handle as the number and type of skills added increase.

Re: changing skill names and descriptions of skills [Re: Rhidian] #563846
05/03/15 08:06 AM
05/03/15 08:06 AM
Joined: Jan 2015
Posts: 86
K
karlgoran Offline OP
journeyman
karlgoran  Offline OP
journeyman
K

Joined: Jan 2015
Posts: 86
Originally Posted By: Rhidian
Are you sure that you're getting the duplicate spell then? Because it should be working if you start the game as a Wizard. Try setting the Element to Water and see if it shows up in the Hydrophist school.

I know I have made a duplicate skill or two back when I was messing around with skills, such as a modified Lava Core for my "Painting the World Red" thread, and maybe for my Purchasable Skillbooks mod. If you want the skill to truly replace the other, you will need to have the normal Skillbook point to your new skill as well.


Changing the element to water in the duplicated spell gives this message "Changing Equipment dropped level(s) of Hydrosophist. Because of that you unlearned Flare".

So that had an effect. Changing descriptions or action points doesn't however, in that case the game seem to read from the spell that i've duplicated from. weird. Did you manage to change the description and in game name of the skill without starting to mess with the localization folder in the main game?

Re: changing skill names and descriptions of skills [Re: Rhidian] #563847
05/03/15 08:07 AM
05/03/15 08:07 AM
Joined: Jan 2015
Posts: 86
K
karlgoran Offline OP
journeyman
karlgoran  Offline OP
journeyman
K

Joined: Jan 2015
Posts: 86
Originally Posted By: Rhidian
Are you sure that you're getting the duplicate spell then? Because it should be working if you start the game as a Wizard. Try setting the Element to Water and see if it shows up in the Hydrophist school.

I know I have made a duplicate skill or two back when I was messing around with skills, such as a modified Lava Core for my "Painting the World Red" thread, and maybe for my Purchasable Skillbooks mod. If you want the skill to truly replace the other, you will need to have the normal Skillbook point to your new skill as well.


ok i'll try that, have you managed to change the desriptions of a duplicated spell in this manner?

Re: changing skill names and descriptions of skills [Re: karlgoran] #563851
05/03/15 10:32 AM
05/03/15 10:32 AM
Joined: Jul 2014
Posts: 459
R
Rhidian Offline
addict
Rhidian  Offline
addict
R

Joined: Jul 2014
Posts: 459
Did you make your own Localization entry in TranslatedStringKeys and have your skill point to that? You want to be changing where the stuff like "Skill_Flare_Description" and such point to (you can change the Ref versions as well to have the description there, but that doesn't do anything ingame; it looks like the Ref is just meant for the modder's reference).

There are three Localization files that each skill uses (and an extra Ref version for each):
1) Name of the Skill
2) Description of the Skill
3) That extra text at the bottom of the skill saying what the effect actually is

Edit:
Here's the stats for my modified Rain skill, "Healing Rain"
Click to reveal..

Code:
new entry "Heal_Rain_Water"
type "SkillData"
data "SkillType" "Rain"
data "Ability" "Defensive"
data "Element" "Water"
data "ActionPoints" "4"
data "Cooldown" "6"
data "ChargeDuration" "0"
data "Lifetime" "5"
data "SurfaceType" "Water"
data "SurfaceLifetime" "12000"
data "SurfaceStatusChance" "100"
data "SkillProperties" "Consume,100,5,SKILLBOOST_AoE_Healing_Rain;Douse,-1,5,,70"
data "TargetRadius" "15"
data "UseCharacterStats" "No"
data "UseWeaponDamage" "No"
data "AreaRadius" "20"
data "TotalSurfaceCells" "125"
data "SurfaceGrowStep" "5"
data "SurfaceGrowInterval" "150"
data "Icon" "Skill_Water_Rain"
data "DisplayName" "Rain_Water_DisplayName"
data "DisplayNameRef" "Rain"
data "Description" "Rain_Water_Description"
data "DescriptionRef" "Create water surfaces."
data "StatsDescription" "Rain_Water_StatsDescription"
data "StatsDescriptionRef" "Radius: [1]<br>Duration: [2]<br><br>Creates water puddles on terrain, douses fires, and makes characters wet. Water surfaces can be electrified."
data "StatsDescriptionParams" "AreaRadius;Lifetime"
data "FXScale" "100"
data "PrepareAnimationInit" "skill_rain_start"
data "PrepareAnimationLoop" "skill_rain_loop"
data "PrepareEffect" "FX_Skills_Water_Rain_Prepare_A"
data "CastAnimation" "skill_rain_cast"
data "CastTextEvent" "cast"
data "CastEffect" "FX_Skills_Water_Rain_Cast_A"
data "TargetEffect" "FX_GP_Target_Water_A"
data "Magic Cost" "1"
data "RainEffect" "FX_Skills_Water_Rain_A"
data "Atmosphere" "Rain"
data "ConsequencesStartTime" "1000"
data "Skillbook" "SKILLBOOK_Heal_Rain_Water"

new entry "Heal_Rain_Water_3"
type "SkillData"
using "Heal_Rain_Water"
data "Level" "3"



DisplayName, Description, and StatsDescription (not the Ref versions) are the ones that point to the Localization file to use.

Last edited by Rhidian; 05/03/15 10:54 AM.
Re: changing skill names and descriptions of skills [Re: karlgoran] #563852
05/03/15 11:16 AM
05/03/15 11:16 AM
Joined: Jan 2015
Posts: 86
K
karlgoran Offline OP
journeyman
karlgoran  Offline OP
journeyman
K

Joined: Jan 2015
Posts: 86
ah ok. What i have to do then essentially is to go into TranslatedStringKeys in the editor, make a new file called English.lsb and then somehow fill out the different fields in some way?

Re: changing skill names and descriptions of skills [Re: karlgoran] #563854
05/03/15 12:13 PM
05/03/15 12:13 PM
Joined: Jul 2014
Posts: 459
R
Rhidian Offline
addict
Rhidian  Offline
addict
R

Joined: Jul 2014
Posts: 459
You can name the file whatever you want.

As for the contents, like for my skill above I might have the following:

Key: Rain_Water_DisplayName
Content: Healing Rain

Re: changing skill names and descriptions of skills [Re: karlgoran] #563857
05/03/15 03:33 PM
05/03/15 03:33 PM
Joined: Jan 2015
Posts: 86
K
karlgoran Offline OP
journeyman
karlgoran  Offline OP
journeyman
K

Joined: Jan 2015
Posts: 86
hmm that worked partially but i still have the problem of the spells seemingly overlaping with each other. Changing displayname in the duplicated spell works, changing Description only works if i change the original spell and action points are still only changeable if i change the original spell. Any idea of what i need to change to get them completely separated?

This is what the duplicated spell looks like currently:

Click to reveal..
new entry "test"
type "SkillData"
data "SkillType" "Projectile"
data "Ability" "Offensive"
data "Element" "Fire"
data "ActionPoints" "4"
data "Cooldown" "3"
data "ChargeDuration" "0"
data "Damage" "3"
data "Damage Multiplier" "100"
data "Damage Range" "10"
data "DamageType" "Fire"
data "SkillProperties" "Warm,100,3;Ignite,100,2,50;Melt,100,4,100;CreateSurface,1,3,Fire,50"
data "TargetRadius" "15"
data "DeathType" "Incinerate"
data "ExplodeRadius" "0"
data "CanTargetCharacters" "Yes"
data "CanTargetItems" "Yes"
data "CanTargetTerrain" "Yes"
data "ForceTarget" "No"
data "TargetConditions" "NonSelf"
data "UseCharacterStats" "No"
data "UseWeaponDamage" "No"
data "ProjectileCount" "1"
data "ProjectileDelay" "0"
data "Template" "5b5e8e38-47fe-4d4c-9d1c-ffbcfe57b87c"
data "Icon" "Skill_Fire_FlareStart"
data "DisplayName" "Search_DisplayName"
data "DisplayNameRef" "Flare"
data "Description" "Search_Description"
data "DescriptionRef" "Cast magical heatest that does [1] damage."
data "StatsDescription" "Search_StatsDescription"
data "StatsDescriptionRef" "Range: [2]<br><br>Can burn targets that are already warmest. Can target terrain to create a fire surface, burn ooze, evaporate water, or melt ice."
data "StatsDescriptionParams" "Damage;TargetRadius"
data "FXScale" "100"
data "PrepareAnimationInit" "skill_flare_start"
data "PrepareAnimationLoop" "skill_flare_loop"
data "PrepareEffect" "FX_Skills_Fire_Flare_Prepare_Dummy_A:Bip001 R Hand"
data "CastAnimation" "skill_flare_cast"
data "CastTextEvent" "cast"
data "CastEffect" "FX_Skills_Fire_Flare_Cast_Dummy_A:Bip001 R Hand"
data "Magic Cost" "1"
data "Skillbook" "SKILLBOOK_Test"

Last edited by karlgoran; 05/03/15 03:49 PM.
Re: changing skill names and descriptions of skills [Re: karlgoran] #563860
05/03/15 05:39 PM
05/03/15 05:39 PM
Joined: Jul 2014
Posts: 459
R
Rhidian Offline
addict
Rhidian  Offline
addict
R

Joined: Jul 2014
Posts: 459
Where is your entry that defines the Level of the spell?

All skills have that after the main entry like I do above.

Re: changing skill names and descriptions of skills [Re: karlgoran] #563861
05/03/15 06:07 PM
05/03/15 06:07 PM
Joined: Jan 2015
Posts: 86
K
karlgoran Offline OP
journeyman
karlgoran  Offline OP
journeyman
K

Joined: Jan 2015
Posts: 86
thanks a lot now it works!


Powered by UBB.threads™ PHP Forum Software 7.6.2