LibCareerDB is a storage library for capturing player careers in scenarios and groups and saving them between sessions.
By default, the WAR API does not make career data available for units outside of groups or scenarios. This addon simply saves that data for later retrieval.
Data capture and storage is automatic. If you have ever seen a player in a scenario or a group, you will know the career of that player whenever you run across them. Devs simple need to access the stored data using one of the following two methods:
Usage
playerCareer, hasCareer = CareerDB.GetCareer(playerName)
---where playerName = wstring of player's name; parses out extra characters if needed
playerCareer, hasCareer = CareerDB.GetCareerByTarget(targetType)
---where targetType = "selffriendlytarget" or "selfhostiletarget" or "mouseovertarget"
Getting other TargetInfo:
This library is designed to only save Career information because that is the only information not easily found in the Default API. Most other information can be found by simple using the default WAR API:
TargetInfo.m_Units[targetType].name
TargetInfo.m_Units[targetType].entityid
TargetInfo.m_Units[targetType].healthPercent
TargetInfo.m_Units[targetType].type (ex: SystemData.TargetObjectType.SELF)
TargetInfo.m_Units[targetType].level
TargetInfo.m_Units[targetType].tier
TargetInfo.m_Units[targetType].conType
TargetInfo.m_Units[targetType].isPvP
TargetInfo.m_Units[targetType].isNPC
TargetInfo.m_Units["selffriendlytarget"].name = returns the player name of your friendly target.
Proof of concept
Please see my proof of concept addon CareerText for an example of how to use this data.
Facts
- Date created
- 17 Oct 2008
- Category
- Last update
- 17 Oct 2008
- Development stage
- Inactive
- Language
- enUS
- License
- GNU General Public License version 3 (GPLv3)
- Curse link
- LibCareerDB
- Recent file
- R: LibCareerDBv01 for Beta 3.0 on 17 Oct 2008