-
Notifications
You must be signed in to change notification settings - Fork 1
Character
mpetrovic edited this page Apr 15, 2011
·
4 revisions
Component
A character on the field in combat.
Properties:
- stats_cur -- current stats. This is a copy of the stats object that is rebuilt on certain events
- effects -- all effects on a character
- equipment -- all items equipped on a character
- position -- what position the character occupies on the field. set to -1 for characters not on the field (reserve party members)
- name -- name for printing
- scene_images -- all the images of the character in various emotional states for use with cutscenes
- take_damage(value, type) -- takes a raw damage, applies def and resist, subtracts it from HP, resets gauges
- die() -- removes character if they're an npc, sets unconscious state if they're playable
- apply_effect(TempEffect) -- applies an effect to a character, runs stat_update
- stat_update() -- gets all Stats from character, equipment and effects, merges them and puts result in stats_cur
- reset(all) -- resets all stats to default except HP. If all is true, reset HP as well
- get_image(key) -- gets the cutscene image for the given state