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
  #5  
Old 12-01-2012, 06:55 PM
MattCaspermeyer MattCaspermeyer is offline
Approved Member
 
Join Date: Aug 2010
Posts: 553
Exclamation on_round_start runs at the beginning of a round...

Quote:
Originally Posted by jukeey View Post
"on_round_start" function run when first damage in round, not when round starting, great logic .
This is not true - I use extensive functions in my H3B mod to change unit statistics on the first round, before combat has started, including resistances.

I'm not sure if the AU library is available here, but the Attack one is and so you can do everything with that library - see my "update_enemy_units_based_on_difficulty" and "apply_difficulty_bonuses" functions in my H3B mod to see how I manipulate the unit statistics (including resistances).

The function "on_round_start" begins at the beginning of each round and if you look at how I modded that function you'll see that I run quite a few things before discerning which round it is.

The function "apply_damage" is run whenever damage needs to be calculated (both for hints and actual damage) and so that one tends to use the AU library more extensively.

Let me know if you have any more questions...

/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 03:05 PM.


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