Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Keep this wiki going by contributing to our Patreon!
Template:CalcScopeStart/doc
Description
A scope is essentially a region in which certain functions and variables are active. You must have at least one scope for a calculator to function.
A scope inherits functions from its parent scope(s), and can use the variables from them, in priority of itself, then direct parent, etc.
For instance if we have the scope
{{CalcScopeStart}} {{CalcFormula|abc|a + b}} {{CalcInput|a}} {{CalcScopeStart}} {{CalcInput|b}} {{CalcResult|abc}} {{CalcScopeEnd}} {{CalcScopeStart}} {{CalcInput|b}} {{CalcResult|abc}} {{CalcScopeEnd}} {{CalcScopeEnd}}
abc:a + b name=a;default=1
name=b;default=0 formula=abc;
name=b;default=0 formula=abc;
As you can see, there are two b variables, but the result only uses the b variable in its own scope. However, both use the a variable in its parent scope.