Your Character: Difference between revisions
imported>StDoodle mNo edit summary |
imported>StDoodle mNo edit summary |
||
Line 1: | Line 1: | ||
=='''The Basics'''== | |||
<p>''We'll start with a long look in the mirror. Here's how to tell about you.''</p> | |||
<p> | |||
{{flink|string|my_name|desc=Returns your character's name in lowercase.}} | {{flink|string|my_name|desc=Returns your character's name in lowercase.}} | ||
{{flink|string|my_id|desc=Returns your character ID.}} | {{flink|string|my_id|desc=Returns your character ID.}} | ||
Line 11: | Line 10: | ||
{{flink|int|my_inebriety|desc=Returns your current drunkenness.}} | {{flink|int|my_inebriety|desc=Returns your current drunkenness.}} | ||
{{flink|int|inebriety_limit|desc=Returns your maximum safe drunk (before overdrinking).}} | {{flink|int|inebriety_limit|desc=Returns your maximum safe drunk (before overdrinking).}} | ||
{{flink|int|my_spleen_use|desc=Returns your current spleen use.}} | |||
{{flink|int|spleen_limit|desc=Returns your spleen limit.}} | |||
{{flink|int|my_fullness|desc=Returns how full you are.}} | |||
{{flink|int|fullness_limit|desc=Returns your maximum fullness.}} | |||
{{flink|boolean|can_eat|desc=Reports on whether your characters path allows food consumption.}} | |||
{{flink|boolean|can_drink|desc=Reports on whether your characters path allows booze consumption}} | |||
{{flink|boolean|can_interact|desc=Reports on whether your character can access the mall, gift packages, etc.}} | |||
{{flink|boolean|in_hardcore|desc=Reports on whether your character is under Hardcore restrictions.}} | |||
=='''Basic Stats'''== | |||
'''stat [[my_primestat|my_primestat()]]''' - returns the stat associated with your class. (''Sample'': [[%28ASHRM%29_Code_Samples#Sample_1:_Seltzer|Seltzer]]) | '''stat [[my_primestat|my_primestat()]]''' - returns the stat associated with your class. (''Sample'': [[%28ASHRM%29_Code_Samples#Sample_1:_Seltzer|Seltzer]]) |
Revision as of 18:14, 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() - returns the stat associated with your class. (Sample: Seltzer)
boolean in_moxie_sign()
boolean in_muscle_sign()
boolean in_mysticality_sign()
Returns whether your ascension sign is associated with a specific stat zone.
int my_hp() - returns your current HP.
int my_mp() - returns your current MP.
int my_maxhp() - returns your current maximum HP.
int my_maxmp() - returns your current maximum MP.
int my_basestat( stat st ) - returns your current base value in the given stat. Passing $stat[SubMuscle], $stat[SubMysticality], or $stat[SubMoxie] to this function will return total substat points.
int my_buffedstat( stat st ) - returns your current buffed value in the given stat.
int current_mcd() - returns the current level of your mind-control device.
boolean change_mcd( int level ) - sets your mind-control device to the specified level.
stat stat_bonus_today()
stat stat_bonus_tomorrow()
Returns the stat that is benefitted by the moon phases today or tomorrow. If it is an “ordinary” day, the return value is $stat[none].
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).