Effect of calculations in functions on other functions

Gng

Hey all

I was wondering if calculations in functions or timers could affect other functions. For example:

Function Slinger

player.health = player.health - weapon.damage

Timer Slice

weapon.damage = enemy.damage + enemy.critical
Slinger
enemy.stamina = enemy.stamina - 3

(The actual codes are 100 lines)

When the timer fires, does Quest finish the Slinger function first and then move on to the next line, or do them both simultaneously?


If a function is currently running when the timer becomes due, it will finish the current functions first. Quest only checks for timers when the last function returns.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums