Hello, I want to get many global variables for check and then do some stuff. So I was wondering which way is faster, to get the values by if condition in script itself, or to add a spell to player which already has that condition checks and then remove it when not needed.

1 reply to this topic
#1
Posted 16 October 2016 - 07:45 PM

#2
Posted 20 October 2016 - 03:55 AM

This would be hard to say unless you had access to the source code of the engine to see how efficient it was at matching up conditions on spell effects. Ultimately I would think that the spell matching would be faster than a stack of if statements. Though depending on how many we're actually talking about, and how often it triggers to check, it might be easier to just do it in the script. It would give you a lot more direct flexibility in the logic.
Also tagged with one or more of these keywords: global variable
IPB skins by Skinbox
