summaryrefslogtreecommitdiff
path: root/example/scripts/abilities.lua
AgeCommit message (Collapse)AuthorFilesLines
2013-08-26Allowed to push attributeinfos for the attribute recalculationErik Schilling1-1/+1
While on it I replaced the id usage in the server with the usage of the AttributeInfo directly. Next steps: - Dehardcode the core attribute ids and store their attributeinfos somewhere in AttributeManager (for now i simply wrapped the ids with getAttributeInfo(). - Move AttributeInfo out of AttributeManager to shorten the usage + to allow using a pointer in ModifierLocation without forward declaring it.
2013-08-26Removed ability categoriesErik Schilling1-2/+2
2013-08-26Made cooldowns of abilities scriptableErik Schilling1-0/+1
- Removed hardcoded using of attributes - Simply introduced lua functions to set global and ability cooldowns - Requires database update - Bumps the protocol
2013-08-26Readded level handlingErik Schilling1-0/+7
Things done: Wrote a entity:give_experience function (lua side only). Renamed characterpoints to attributepoints (no db update. Did not want to do one for a simple rename). Temponary introduced a ATTR_LEVEL constant. TODO: dehardcode this. Script binds for settings the correction and attribute points.
2013-08-26Readded Entity:damage as lua functionErik Schilling1-7/+6
2013-08-26[Abilities] Added a add_hit_taken bindErik Schilling1-0/+4
This allows to display hit messages in the client for abilities
2013-08-26[Abilities] Made a first example attack abilityErik Schilling1-2/+20
2013-08-26[Abilities] Added a autoconsume optionErik Schilling1-1/+0
You do not need to reset the mana in the scripts if you do not want to. We will need this for attacks later since those do not nessecary have a script.
2013-08-26[Abilities] Removed all except one abilityErik Schilling1-5/+0
Should allow easier modification without thinking of useful examples for each one
2013-08-26[Abilities] Turned special 1 into a point target for easier testingErik Schilling1-1/+1
2013-08-26[Abilities] Renamed specials to abilitiesErik Schilling1-0/+22