Combat rate modifier: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle mNo edit summary |
imported>Bale mNo edit summary |
||
Line 5: | Line 5: | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 33: | Line 32: | ||
special=Returns 0.0 when not logged in. | special=Returns 0.0 when not logged in. | ||
}} | }} | ||
[[Category:Your Character]] |
Revision as of 21:36, 21 May 2010
Function Syntax
float combat_rate_modifier()
Returns the current percentage change on combat frequency including equipment and effects.
Code Samples
Checks that your combat frequency modifier is positive (for example, before adventuring in the Purple Light District).
boolean is_combat_positive() {
if(combat_rate_modifier() > 0) {
return true;
}
return false;
}
See Also
Special
Returns 0.0 when not logged in.