Jump to content

which is the faster?


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...