January 25, 2018
Antimage: Spell Shield Lua
Let's get our hands dirty.
EDIT: Some links have been updated due to github repository change.
Ability Form Review
Take a brief look on the ability's .txt file. It's quite short, since it's a simple ability.
Notice that the ability has been renamed as "antimage_spell_shield_lua" in order to avoid collision with the real one.
It is a basic ability with a passive behavior, and nothing else. No need for cast points, unit targetting, spell immunity, etc etc. It also has just one ability specials, which defines the magic resistance bonus on each level.
In short, it's short.
Introducing: Main Lua File
Open up a text-editor, create new file and save it as "antimage_spell_shield_lua.lua", placed according to the .txt file. This will be the main script file, which defines what the ability does. Let's begin with the keypoints.
Class Identifier
You should generally want this particular line at the start of your lua files. This defines the start of a class for c…
Read More