PDA

View Full Version : Modding question


BobMaster
01-21-2010, 07:14 AM
Hello all,

I'm trying to balance or change the runes we get on level up, but for that, I need to fully understand the script, so here it is (mage level_up part):

// ïðîêà÷êà
level_up {
leadership=40,30
attack=1,10
defense=1,20
intellect=1,40
mana=6,40
rage=4,20
runes=7-7 // ×èñëî è âåðîÿòíîñòè ïîëó÷åíèÿ ðóí. Íå èñïîëüçóåòñÿ â 1.6.
rune_might=20
rune_mind=20
rune_magic=60
book=1,5 // ðàñòåò íà 1 êàæäûé 5 óðîâåíü
}
k_spirit_up=0.5 // êîýôôèöèåíò íàáèðàíèÿ îïûòà ñïèðèòà
}

So I suppose the 20/20/60, is the maximum number of runes we get from leveling in the entire game.
But how or what represents the 7-7 ?
The cyrilic after that line translates to this: "Number and probabilities of reception of fleeces. It is not used in 1.6", so I'm guessing it's the total number of runes we get at each level up, divided by the 3 types of runes, but how does it get divided or how exactly does this work ?

Any help is appreciated.

And another question, is there a way to add a spell to our spellbook, or add an item to our inventory, just checking :p ?

Greetz,
BobMaster

xsyron
01-21-2010, 08:41 AM
Hi, I am thinking that those you try to modify are the starting values. Which further multiplied by the difficulty setting as defined in logic.txt.

the | signifies easy|normal|hard|impossible multipliers:
start_gold=5.0|1.0|1.00|1.0 // íà÷àëüíûé êîýô. çîëîòà
start_crystals=5.0|1.0|1.00|1.0 // íà÷àëüíûé êîýô. êðèñòàëëîâ
start_mana=2.0|1.0|1.00|1.0 // íà÷àëüíûé êîýô. ìàíû
start_rage=2.0|1.0|1.00|1.0 // íà÷àëüíûé êîýô. ÿðîñòè
start_rune_might=3.0|1.0|1.00|1.0 // íà÷àëüíûé êîýô. ðóí ñèëû
start_rune_mind=3.0|1.0|1.00|1.0 // íà÷àëüíûé êîýô. ðóí äóõà
start_rune_magic=3.0|1.0|1.00|1.0 // íà÷àëüíûé êîýô. ðóí ìàãèè
start_book=3.0|1.0|1.00|1.0 // íà÷àëüíûé êîýô. ðàçìåð êíèãè

so if you change in hero.txt the value of starting might runes to 20, and you play the game in easy this will be multiplied by 3.0, starting with 60 might runes in easy and 20 in every other difficulty setting.

The levelup values concearning the runes are handled by logic_hero.lua which you can find also inside ses.kfs

the part which alters levelup runes is this:

rune_war={"6,4,2","5,5,2","6,3,3","7,4,1"}
rune_pal={"3,6,3","2,7,3","3,5,4","4,6,2"}
rune_mag={"2,4,6","1,5,6","2,3,7","3,4,5"}

changing these values change the runes you get every level :)

To answer your second question you can begin the game with any spell or any item you like

for example in hero.txt in the warrior section:

spells {
spell_haste=-1
}

this mean that the warrior has haste as a scroll, you can see the spell names in spells.txt and add as many starting spells as u like.

in example to begin with level 1 haste,bless and healing you'd made the change:

spells {
spell_haste=1
spell_bless=1
spell_healing=1
}

The same goes for items:

items {
time_clock=1
picture_inspirit=1
}

to see item codes visit items.txt

hope didnt confuse you much with my poor english :p

BobMaster
01-21-2010, 08:59 AM
Thanks xsyron, that explained alot :)

As far as I understand about the spells and items, it's only possible to make them available from start, I can't add them mid-game, correct ?

[EDIT}: I managed to add the spell resurrection with the savegame editor, for some reason the furious paladins house is bugged in my game, so wasnt really cheating ;) (see my other topic)