Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > King's Bounty > King's Bounty: The Legend > Mods

Mods Everything about mods

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 05-11-2013, 07:55 PM
MattCaspermeyer MattCaspermeyer is offline
Approved Member
 
Join Date: Aug 2010
Posts: 553
Post Here's the spirit experience detailed info

Quote:
Originally Posted by Fatt_Shade View Post
Yea, i had version from February , and there was source of problem for devatron, and lvlup missing lines for death spirit
Ok, glad you got that sorted out!

Quote:
Originally Posted by Fatt_Shade View Post
And now remembered this :
- did you change something in quest part where you exchange dragonfly wings for magic crystals in Greenworth, in village near castle. In old game was 3 wings for 1 crystal, and now i get 3 crystals for 1 wing.
Yep, I sure did - now you can get rid of all your dragonfly wings and it helps get you more crystals, which you still won't have enough of anyway.

Quote:
Originally Posted by Fatt_Shade View Post
- do you know where is formula for spirit exp gain in battles? I`m testing lvlup for some skills on start with this lineup 2x1 inquisitor - rage generators, 2x1 dryad - enemy controlling (got them random on game start), 1x1 marauder - gold digging unit, (i got gift spell early so i use search on every dead unit, and with weak dryad plant summons i`m 8lvl hero, with 350k gold in Greenworth/Verlon forest My total army leadership is 270, and when i battle enemy that are marked as invincible and have total leadership of 2000+ i use rage spirits all time and keep whole enemy army asleep and kill stacks 1by1. Even though enemy is 10x stronger leadership wise and my rage skills exp gain should be nominal value from .atom file x10. But i get only nominal value listed after each rage skill use. Any idea where/how to change this?
Yah, Dryads are very powerful vs non-mind immune level 1-3 units, especially early in the game.

As far as the spirit experience gain, it is all done internally. The only thing that can be done is to scale the base spirit experience, which you see in their ATOM's or increase the sp_addexp_spirit counter via items / skills. If you look at SPIRITS_COMMON.LUA you'll see the function spirit_after_hit where it computes the base spirit experience from the spirit's ATOM (this is exp_add) and then modifies it with sp_addexp_spirit (this is exp_bonus) and then it uses the Attack library function add_exp to take the exp_add * exp_bonus and determine internally what the actual experience rise is.

The internal spirit experience gain formula is listed in the King's Bounty user manual, which can be downloaded somewhere here on the forum. I implemented this formula (and this is the exact same formula you see in CW for the spirit experience during battle), but found that it doesn't quite give you the same experience from this formula so there's something going on internally that is slightly different than what is described. That is why you see that I list an experience range during combat because I don't know exactly what the add_exp Attack library function is doing in the C++ code. Some of this variability is also related to whether you are using a "static" versus "dynamic" spirit ability. Static abilities are ones that don't do any damage while dynamic abilities are ones where you do. Since the experience gain formula factors in unit deaths when using it I can't know beforehand (except maybe for mass damage abilities) how much damage you're going to do. So for static abilities I should know how much experience you should get, but found that it could be off by 1, hence the range (i.e. 4-5 experience) for even static abilities.

Well, anyway, that's probably too much information, but that's what's going on there.

Matt

/C\/C\
Reply With Quote
 


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.