Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Want to make the wiki better? Contribute towards getting larger projects done on our Patreon!
Template:CalcScopeStart
[edit]Template Documentation
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;