View Single Post
  #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