Research: Difference between revisions
Jump to navigation
Jump to search
(Defining roll function.) |
(Added Conventions section.) |
||
Line 2: | Line 2: | ||
Morrowind's game mechanics in full detail and coverage. | Morrowind's game mechanics in full detail and coverage. | ||
All numeric operations occur in floating point unless indicated. int(x) truncates. roll(n) returns an integer from 0 up to but not including n. | |||
==Conventions== | |||
====Variables==== | |||
* All attribute accesses are the modified (fortified/drained) value by default. Base attribute access is indicated by attributes starting with ''base''. | |||
* Attributes may be prefixed with ''pc'' or ''npc'' to indicate the owner of the attribute when opposing actors are involved. | |||
====Calculation==== | |||
* All numeric operations occur in floating point unless indicated. | |||
* int(x) truncates. | |||
* round(x) uses the default FPU rounding mode. [IEEE 754 round-towards-even] | |||
* roll(n) returns an integer from 0 up to but not including n. | |||
Revision as of 17:04, 21 September 2012
Morrowind's game mechanics in full detail and coverage.
Conventions
Variables
- All attribute accesses are the modified (fortified/drained) value by default. Base attribute access is indicated by attributes starting with base.
- Attributes may be prefixed with pc or npc to indicate the owner of the attribute when opposing actors are involved.
Calculation
- All numeric operations occur in floating point unless indicated.
- int(x) truncates.
- round(x) uses the default FPU rounding mode. [IEEE 754 round-towards-even]
- roll(n) returns an integer from 0 up to but not including n.
Categories
Contributing
Please submit only primary research, or sourced research with independent verification.