Thread: Math Functions in FGII?
-
May 11th, 2007, 15:59 #1
Math Functions in FGII?
I've done some searching, but could not find the documentation of the math functions supported in the .xml scripting. In the d20 charsheet_templates.xml file, within the template for abilitybonus, there is a line that reads:
Code:<script> function onSourceUpdate() setValue(math.floor((sources[scorefield[1]].getValue() - sources[damagefield[1]].getValue() - 10) / 2) + getModifier()); end function onInit() addSource(scorefield[1]); addSource(damagefield[1]); super.onInit(); end </script>
-
May 11th, 2007, 16:35 #2
LUA is the scripting language used. For the math lib look here for reference https://www.lua.org/manual/5.1/manual.html#5.6
-
May 11th, 2007, 16:49 #3
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks