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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2012, 04:20 AM
Glabrezu Glabrezu is offline
Amateur
 
Join Date: Apr 2010
Posts: 11
Default Adding a new class

BAH doesnt work... warrior class is replaced by yours, so this is basically more an editing of a pre existing class

not sure if there is still interest in this but... i was recently playing the game (again) and found there is a way to add an extra class to the game without it having any adverse effects (ie it seems only to affect characters made by you, so it can be used to cheat if you wish)

lets say you want to make a Paladin

1) make a folder in the assets folder in the game directory called ui

2)extract the newCharacter.mnu file from the assets003.zip/ui from the games assets folder into the newly made ui folder

3)in the newCharacter.mnu file search for
// Warrior choice
you want to copy the whole chunk (everything to the, // Rogue choice part and paste it above the // warrior choice (doesnt really matter if its above orbelow to be honest)
change the // Warrior choice of what you pasted to
to // Paladin Choice (this part doesnt really matter either it just for cosmetics)
change the
text $$Warrior$$
textAlignment center
to
text $$Paladin$$
textAlignment center

change the
textAlignment center
position 50.0 125.0
to
textAlignment center
position 50.0 225.0
this will make it so that you can choose the paladin class beneath all the rest

then (also for cosmetics)
texture Textures/ui/button5.tga
position 80.0 125.0
to
texture Textures/ui/button5.tga
position 80.0 225.0

so it will look like

// Paladin choice

Widget
{
text $$Paladin$$
textAlignment center
position 50.0 225.0
size 160.0 25.0
color White
draworder 4.0
canClick 1
userVar "PlayerClass" ""
setVarOnButtonPress 1
addCommand "setUserVar NewCharacterModel Models/playerWarrior.mdl"
addCommand "setUserVar NewCharacterWeaponModel Models/weapons/axe1_cleaver.mdl"
addCommand "setUserVar NewCharacterShieldModel Models/Armor/pavis.mdl"
addCommand "setUserVar NewCharacterShouldersModel Models/Armor/shouldersPlateFull.mdl"
addCommand "setUserVar NewCharacterHelmetModel Models/Armor/helmetPlateFull.mdl"
addCommand "setUserVar NewCharacterSkin Models/Npcs/newCharWarrior.skn"
}

Widget
{
texture Textures/ui/button5.tga
position 80.0 225.0
size 100.0 25.0
draworder 2.0
}

// Warrior choice

Widget
{
text $$Warrior$$
textAlignment center
position 50.0 125.0
size 160.0 25.0
color White
draworder 4.0
canClick 1
userVar "PlayerClass" ""
setVarOnButtonPress 1
addCommand "setUserVar NewCharacterModel Models/playerWarrior.mdl"
addCommand "setUserVar NewCharacterWeaponModel Models/weapons/axe1_cleaver.mdl"
addCommand "setUserVar NewCharacterShieldModel Models/Armor/pavis.mdl"
addCommand "setUserVar NewCharacterShouldersModel Models/Armor/shouldersPlateFull.mdl"
addCommand "setUserVar NewCharacterHelmetModel Models/Armor/helmetPlateFull.mdl"
addCommand "setUserVar NewCharacterSkin Models/Npcs/newCharWarrior.skn"
}

Widget
{
texture Textures/ui/button5.tga
position 80.0 125.0
size 100.0 25.0
draworder 2.0
}

end of part 1

Last edited by Glabrezu : 02-26-2012 at 06:07 AM.
Reply With Quote
  #2  
Old 02-20-2012, 11:58 AM
Glabrezu Glabrezu is offline
Amateur
 
Join Date: Apr 2010
Posts: 11
Default part 2

part 2

1)this time you want to make a folder in the assets folder called Database

2)then you want to extract the classes.gdb into this folder
this is in the assets003.zip/database in the assets folder

3) copy the ClassWarriorBase all the way to the point before
ClassRogueBase
paste it above
ClassWarriorBase
and change ClassWarriorBase to ClassPaladinBase
and the
Name $$Warrior$$
to
Name $$Paladin$$

you will now have something that looks like:

ClassPaladinBase
{
Base BaseClass

Index 0

Name $$Paladin$$
Desc $$WarriorDesc$$
Male 1

ModelName Models/playerWarrior.mdl

PowerName $$Rage$$
PowerColor "1.0 0.0 0.0"
DecreasingPowerColor "1.0 0.0 0.0"

DamageMultPerStr 1.0
HealthPerVit 5.0
DefensePerDex 3.0
AttackPerDex 5
PowerPerInt 0
CriticalPerInt 0.1
HealthRegenPerSpr 0.0 // 1.0
PowerRegenPerSpr 0.0
ResistancePerSpr 0.1

PowerGainOnHit 1.5
PowerGainOnDamage 1.0
PowerGainOnBlockOrParry 0.5
PowerRegenOutsideCombat -0.75
// PowerRegenOutsideCombat 0
CanRegenPower 0

ItemRequirement ArmorCloth
ItemRequirement ArmorLeather
ItemRequirement ArmorMail
ItemRequirement Shield

ItemRequirement WeaponDagger
ItemRequirement WeaponAxe
ItemRequirement WeaponSword
ItemRequirement WeaponSwordTwoHanded
ItemRequirement WeaponMace

MaxPower 100
PowerStart 0

BaseOnly 1

SurfaceHead -1
SurfaceNeck -1
SurfaceShoulders -1
SurfaceBack -1
SurfaceChest 2
SurfaceWrists 5
SurfaceHands 1
SurfaceWaist -1
SurfaceLegs 3
SurfaceFeet 4
SurfaceRing1 -1
SurfaceRing2 -1
SurfaceJewelry1 -1
SurfaceJewelry2 -1
SurfaceHandPrimary -1
SurfaceHandSecondary -1
SurfaceRanged -1
SurfaceNone -1
}

between BaseClass and ClassWarriorBase

4) you than want to change the warrior class here so that it uses mana and not rage and points to the
PaladinClass and other little bits
focussing on all the text in your new ClassPaladinBase
change
Name $$Warrior$$
to
Name $$Paladin$$

change
PowerName $$Rage$$
to
PowerName $$Faith$$
(its optional if you want tochange the colour, i kept the red)

change the
PowerPerInt 0
to whatever you think appropriate (priests is PowerPerInt 3 so 1.5 maybe?)

change the
PowerRegenPerSpr 0.0
to
PowerRegenPerSpr 0.2

add
PowerPerSpr 0
beneath CriticalPerInt 0.1 changring the 0 to whatever again (priest is 7, so maybe 3.5)

delete all of this
PowerGainOnHit 1.5
PowerGainOnDamage 1.0
PowerGainOnBlockOrParry 0.5
PowerRegenOutsideCombat -0.75
// PowerRegenOutsideCombat 0
CanRegenPower 0
paste this in its place
BasePowerRegen 1.0
CombatPowerRegenMultiplier 0.25

MaxPowerOnLevelUp 1

ItemRequirement Faith

delete this
MaxPower 100
PowerStart 0
and paste this in its place
MaxPower -1
PowerStart -1

UsesFaith 1

so the ClassPaladinBase should look like this

ClassPaladinBase
{
Base BaseClass

Index 0

Name $$Paladin$$
Desc $$WarriorDesc$$
Male 1

ModelName Models/playerWarrior.mdl

PowerName $$Faith$$
PowerColor "1.0 0.0 0.0"
DecreasingPowerColor "1.0 0.0 0.0"

DamageMultPerStr 1.0
HealthPerVit 5.0
DefensePerDex 3.0
AttackPerDex 5
PowerPerInt 1.5
CriticalPerInt 0.1
PowerPerSpr 3.5
HealthRegenPerSpr 0.0 // 1.0
PowerRegenPerSpr 0.2
ResistancePerSpr 0.1

BasePowerRegen 1.0
CombatPowerRegenMultiplier 0.25

MaxPowerOnLevelUp 1

ItemRequirement Faith

ItemRequirement ArmorCloth
ItemRequirement ArmorLeather
ItemRequirement ArmorMail
ItemRequirement Shield

ItemRequirement WeaponDagger
ItemRequirement WeaponAxe
ItemRequirement WeaponSword
ItemRequirement WeaponSwordTwoHanded
ItemRequirement WeaponMace

MaxPower -1
PowerStart -1

UsesFaith 1

BaseOnly 1

SurfaceHead -1
SurfaceNeck -1
SurfaceShoulders -1
SurfaceBack -1
SurfaceChest 2
SurfaceWrists 5
SurfaceHands 1
SurfaceWaist -1
SurfaceLegs 3
SurfaceFeet 4
SurfaceRing1 -1
SurfaceRing2 -1
SurfaceJewelry1 -1
SurfaceJewelry2 -1
SurfaceHandPrimary -1
SurfaceHandSecondary -1
SurfaceRanged -1
SurfaceNone -1
}

5) then you need to copy the ClassWarrior just above the ClassRogue and paste this above the ClassWarrior
6) change all Warrior parts (except the skilltree's and index name) there into Paladin so itll look like

ClassPaladin
{
Base ClassPaladinBase

IndexName Warrior

HealthPerLevel 4

SkillTree SkillTreeWarriorCombat
SkillTree SkillTreeWarriorCommand
SkillTree SkillTreeWarriorRage
SkillTree SkillTreeBonus
SkillTree SkillTreeBasicWarriorSkills

StartingItem Axe1-Crude
StartingItem Food1
StartingItem Food1
StartingItem Food1
StartingItem Food1
StartingItem PotionHealth1
StartingItem TeleportStone
StartingItem TomeIntro

StartingMoney 50
}

after that its a case of choosing or making whatever skilltree's you want to use
im pretty sure you should know what to do now, if not im also sure its already
been covered in the forums
maybe chance the Ax1-Crude to Mace1-Crude

Last edited by Glabrezu : 02-20-2012 at 12:58 PM.
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:58 AM.


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