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: Crossworlds > Mods

Mods King's Bounty: Crossworlds Mods

Reply
 
Thread Tools Display Modes
  #1  
Old 11-26-2010, 12:08 AM
MattCaspermeyer MattCaspermeyer is offline
Approved Member
 
Join Date: Aug 2010
Posts: 553
Default Question about Modding Spell Effect Death

Hi, I've actually been working on a mod for King's Bounty the Legend, but I'm pretty sure the mechanics work the same for Armored Princess and Crossworlds, so I'm posting here hoping somebody will know the answer to the problem I'm having with spell effects.

For certain effects, (i.e. burn, poison) there is a function in SPELL_EFFECTS.LUA (like effect_burn_attack) that sets the effect on the afflicted unit and then next time called the damage of the effect is applied.

The first time the effect is applied, typically it is called from a function in UNIT_FEATURES.LUA (for example), however, one of my questions is: what calls it for the subsequent application of the damage caused by the affliction (i.e. when the burn or poison effect is causing damage on the unit)? For other effects, like Sleem's Poison Spit, there seems to be no function where the affliction damage is being applied (like for burn and poison in SPELL_EFFECTS.LUA), but nonetheless it is applied. I'm wondering what applies the damage in this situation (i.e. is it in an LUA file somewhere or simply one of the Library functions (like Attack or AU)).

Lastly, what has driven me to ask these questions is that if an effect causes stack death and the next unit to move is another AI unit with an affliction, the affliction damage is skipped (but the affliction duration decreases by 1 and the unit moves normally). This only happens if the unit stack dies, if the unit stack is not killed then the affliction damage proceeds normally.

Here is an example:

Cannoneers are afflicted with "effect_burn" caused by Flaming Arrow and the unit that moves next, Giants, are also afflicted with the same effect. If the Cannoneers suffer enough damage to die, then the Giant's "effect_burn" will not be executed and the Giants will move normally as well as 1 round subtracted from the "effect_burn" duration. Where is the duration being changed and why did effect_burn_attack not get called?

Hopefully someone here knows why as it seems like (at least for The Legend and Armored Princess it seems that the affliction damage is attenuated so that stack death does not occur or is very infrequent - I can't say anything for Crossworlds because I don't have it yet). I'm thinking that it might be a limitation in the game code as the opposed to the LUA scripts, but hopefully not.

P.S. I use the LUA Debugger in Development Mode to walk through scripts and so I've tracked script execution the best I can, but I can't step into Library Functions like Attack, AU, etc. so what happens in those is somewhat of a mystery except what is described here: http://kingsbounty.ru/docs/scripting/index.htm and returns from effect_burn_attack, for example, go to a gen_tab in TEXTGEN.LUA (and stepping further from there goes nowhere since it keeps looping between it and gen_space for longer than my patience held out).
Reply With Quote
  #2  
Old 05-25-2024, 12:47 PM
ghori92 ghori92 is offline
Approved Member
 
Join Date: Mar 2024
Posts: 178
Default dfgfgf

Please share more like that. 무료스포츠중계
Reply With Quote
  #3  
Old 05-25-2024, 01:34 PM
ghori92 ghori92 is offline
Approved Member
 
Join Date: Mar 2024
Posts: 178
Default hgdghg

I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. 카지노사이트
Reply With Quote
  #4  
Old 05-26-2024, 10:42 AM
seo12 seo12 is online now
Approved Member
 
Join Date: Mar 2024
Posts: 119
Default

Join MTKick and enjoy hassle-free online transactions with our Eat and Run Police on patrol. 먹튀검증
Reply With Quote
  #5  
Old 05-28-2024, 01:21 PM
seo12 seo12 is online now
Approved Member
 
Join Date: Mar 2024
Posts: 119
Default

I admire what you have done here. I like the part where you say you are doing this to give back but I would assume by all the comments that this is working for you as well. jeep parts online
Reply With Quote
  #6  
Old 05-29-2024, 10:31 AM
ghori92 ghori92 is offline
Approved Member
 
Join Date: Mar 2024
Posts: 178
Default

If you set out to make me think today; mission accomplished! I really like your writing style and how you express your ideas. Thank you. 카지노솔루션
Reply With Quote
  #7  
Old 05-29-2024, 10:46 AM
ghori92 ghori92 is offline
Approved Member
 
Join Date: Mar 2024
Posts: 178
Default

I admire what you have done here. I like the part where you say you are doing this to give back but I would assume by all the comments that this is working for you as well. 토토커뮤니티
Reply With Quote
  #8  
Old 05-29-2024, 10:52 AM
ghori92 ghori92 is offline
Approved Member
 
Join Date: Mar 2024
Posts: 178
Default

Your articles are inventive. I am looking forward to reading the plethora of articles that you have linked here. Thumbs up! 카지노사이트
Reply With Quote
  #9  
Old 05-29-2024, 11:33 AM
ghori92 ghori92 is offline
Approved Member
 
Join Date: Mar 2024
Posts: 178
Default

Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. Coil and pod
Reply With Quote
  #10  
Old 05-29-2024, 11:41 AM
ghori92 ghori92 is offline
Approved Member
 
Join Date: Mar 2024
Posts: 178
Default

Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. 슬롯사이트
Reply With Quote
Reply


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 01:40 PM.


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