Would an ability (spell) which requires an event to calculate "use Cost" be able to execute that event,(to generate the correct useCost) and also set an ability modifier before the ability (the spell) is calculated.
'less hypothetical'
Using a spell slot system.
So for a Level One spell cast (ability)
The spell requires a Level One Spell slot to cast (useCost)
However, if no Level One spell slot is available, the user can 'overcast' by using higher level Spell Slots (2,3,4,etc.)
If 'overcast' occurs, using a level slot higher than level one the spell then incurs increased effects over the default level.
So, in practice if a user calls the spell (Level one) but has exhausted Level One slots, the useCost event checks for incremental (higher) spell slot availability (check level two, then check level three, then check level four, etc.)
If any 'overcast' opportunity exists then the spell is cast and the appropriate (higher) spell slot is consumed.
The primary question is, if 'overcast' sets an overcast variable, (user consumed a 'Level Three' slot for 'Level One' spell, can that variable [+2] be used/seen/accessed (Global variable) by the original spell to increase effects/power?
Or does the useCost framework occur after or outside of the spell effect itself?