Your Character: Difference between revisions
imported>StDoodle mNo edit summary |
imported>StDoodle mNo edit summary |
||
Line 19: | Line 19: | ||
{{flink|boolean|in_hardcore|desc=Reports on whether your character is under Hardcore restrictions.}} | {{flink|boolean|in_hardcore|desc=Reports on whether your character is under Hardcore restrictions.}} | ||
=='''Basic Stats'''== | =='''Basic Stats'''== | ||
{{flink|stat|my_primestat|desc=Returns the main stat of your current class. (''Sample'': [[%28ASHRM%29_Code_Samples#Sample_1:_Seltzer|Seltzer]])}} | |||
{{flink|boolean|in_moxie_sign}} | |||
{{flink|boolean|in_muscle_sign}} | |||
{{flink|boolean|in_mysticality_sign}} | |||
{{flink|boolean|in_bad_moon|desc=These four functions report on whether your character is ascended under the appropriate sign.}} | |||
{{flink|int|my_hp|desc=Returns your current HP.}} | |||
{{flink|int|my_mp|desc=Returns your current MP.}} | |||
{{flink|int|my_maxhp|desc=Returns your current maximum HP.}} | |||
{{flink|int|my_maxmp|desc=Returns your current maximum MP.}} | |||
{{flink|int|my_basestat|desc=Returns your base value in the given stat (or substat).}} | |||
{{flink|int|my_buffedstat|desc=Returns your buffed value in the given stat (or substat).}} | |||
{{flink|int|current_mcd|desc=Returns the current setting of your sign-specific +ML device.}} | |||
{{flink|boolean|change_mcd|int|desc=Tries to set your +ML device to a specified setting and reports on success.}} | |||
{{flink|stat|stat_bonus_today}} | |||
{{flink|stat|stat_bonus_tomorrow|desc=These two functions report on what stat has a stat-day bonus or $stat[none] if it isn't a stat day.}} | |||
=='''More Advanced Stats'''== | |||
'''stat [[current_hit_stat|current_hit_stat()]]''' - returns the stat that is currently used to calculate hit percentages.<br /> | '''stat [[current_hit_stat|current_hit_stat()]]''' - returns the stat that is currently used to calculate hit percentages.<br /> | ||
'''int [[buffed_hit_stat|buffed_hit_stat()]]''' - returns the current buffed value of your hit stat. Identical to <tt>my_buffedstat(current_hit_stat())</tt>. | '''int [[buffed_hit_stat|buffed_hit_stat()]]''' - returns the current buffed value of your hit stat. Identical to <tt>my_buffedstat(current_hit_stat())</tt>. |
Revision as of 18:35, 1 March 2010
The Basics
We'll start with a long look in the mirror. Here's how to tell about you.
string my_name()
string my_id()
class my_class()
int my_level()
int my_adventures()
int my_turncount()
int my_inebriety()
int my_spleen_use()
int spleen_limit()
int my_fullness()
int fullness_limit()
boolean can_eat()
boolean can_drink()
boolean can_interact()
boolean in_hardcore()
Basic Stats
stat my_primestat()
boolean in_moxie_sign()
boolean in_muscle_sign()
boolean in_mysticality_sign()
boolean in_bad_moon()
int my_hp()
int my_mp()
int my_maxhp()
int my_maxmp()
int my_basestat()
int my_buffedstat()
int current_mcd()
boolean change_mcd( int )
stat stat_bonus_today()
More Advanced Stats
stat current_hit_stat() - returns the stat that is currently used to calculate hit percentages.
int buffed_hit_stat() - returns the current buffed value of your hit stat. Identical to my_buffedstat(current_hit_stat()).
int raw_damage_absorption() - returns the total DA of all your gear and effects.
float damage_absorption_percent() - returns the percentage of damage that is blocked by all your gear and effects.
int damage_reduction() - returns the amount of damage deducted from successful attacks due to the DR of your gear and effects.
float elemental_resistance( element elem ) - returns the percentage of damage reduction from the indicated elemental damage.
float combat_rate_modifier() - returns the adjustment to your percentage of combat adventures.
float initiative_modifier() - returns the adjustment to your chance of winning initiative in battle.
float experience_bonus() - returns the amount of bonus experience you receive.
float meat_drop_modifier() - returns the adjustment to your amount of meat dropped.
float item_drop_modifier() - returns the adjustment to your percentage of item drops.
int monster_level_adjustment() - returns your total +ML (including the MCD).