X
Xikini
Guest
The TFS I use is 0.3.7_svn
However, I don't believe the TFS version I'm using is applicable to this question.
-------------------------------------------
I've always avoided spells because I don't understand them.
Everytime I sit down and try to understand them, it's like walking through a muddy river with stepping stones.
You can see the stepping stones, but if you slip off of the path, it's dark unknowing water that don't make sense.
My biggest problem is the parameter 'var'.
I've been told in the past that this is a very complex parameter that holds multitudes of data.
However this exact same parameter is cast off into space and never used when you go and use it in the weird functions above, that don't operate like a regular Lua function.
The functions above for combat have no apparent start or end, and you can paste whole lines of the same code over and over, and yet they don't collide or interact with each other.
Hell, you can even move those lines into an entirely different part of the script and they still work.
The entire spell section is a big giant mystery for me.
------------------------------------------
I'm here to ask some kind soul to do their best and break down a spell, from top to bottom, and explain it me.
My current questions;
Why is var called upon when completing a spell to calculate damages, yet var itself just disappears into thin air when you look up at the spell configuration above? (cid, combat, var)
What is var? What information does it hold?
-------------------------------------------------
I'd prefer if someone explained it like talking to an infant, but I am resourceful, and I'm not afraid to ask more direct questions once I get the initial grasp of the idea.
Thanks in advance!
Xikini
(I also have another unanswered question, if you are feeling extra generous. Lua - 0.3.7 Checking time for distance effect to reach it's intended destination)
However, I don't believe the TFS version I'm using is applicable to this question.
-------------------------------------------
I've always avoided spells because I don't understand them.
Everytime I sit down and try to understand them, it's like walking through a muddy river with stepping stones.
You can see the stepping stones, but if you slip off of the path, it's dark unknowing water that don't make sense.
My biggest problem is the parameter 'var'.
I've been told in the past that this is a very complex parameter that holds multitudes of data.
However this exact same parameter is cast off into space and never used when you go and use it in the weird functions above, that don't operate like a regular Lua function.
The functions above for combat have no apparent start or end, and you can paste whole lines of the same code over and over, and yet they don't collide or interact with each other.
Hell, you can even move those lines into an entirely different part of the script and they still work.
The entire spell section is a big giant mystery for me.
------------------------------------------
I'm here to ask some kind soul to do their best and break down a spell, from top to bottom, and explain it me.
My current questions;
Why is var called upon when completing a spell to calculate damages, yet var itself just disappears into thin air when you look up at the spell configuration above? (cid, combat, var)
What is var? What information does it hold?
-------------------------------------------------
I'd prefer if someone explained it like talking to an infant, but I am resourceful, and I'm not afraid to ask more direct questions once I get the initial grasp of the idea.
Thanks in advance!
Xikini
(I also have another unanswered question, if you are feeling extra generous. Lua - 0.3.7 Checking time for distance effect to reach it's intended destination)