Here you will find Blog posts about atavism
This week I’m going to explain how to create a Damage over Time effect (DoT) along with setting up the ability, the skill and giving it to players. For any who aren’t familiar with the term, DoTs are used for bleed, poison, burn or curse (or other) style abilities where the target continues to take damage for a period of time.
For this blog I am going to create an ability called Lacerate which causes a DoT called Bleed. The ability will be part of the Knife Style skill. There are 4 parts to cover: Creating the Skill, creating the Effect, creating the Ability and giving the Skill to a player.
Creating the Skill
Open the Skills plugin in the Atavism Online Editor and create a new Skill called Knife Style. Make sure Automatically Learn is checked and hit Save Data. The rest of the settings don't matter for this example.
Creating the Effect
Open the Effects plugin in the Atavism Online editor. I have set the properties as below:
Effect Type: Damage (as this effect will be dealing damage).
Damage Effect Type: Physical Dot (Bleed effects generally use physical stats for their damage calculations. By default the physical stats are strength (physical power) and dexterity (physical accuracy)).
Damage Property: health (the target will be losing health from this effect).
Damage Type: I have chosen slash, but it could be any.
Damage amount: 30 (this is the full amount that will be dealt by the DoT before other modifiers).
Damage modifier: 1 (leaving this as default)
Transfer Rate: 0 (I don’t want the caster getting any health from this)
Bonus Damage Effect: None (I’ll cover this at the end of the Blog)
Bonus Damage Amount: 0 (if there is no bonus damage effect, there’s no need to set an amount)
Is Buff: False (buffs are for positive effects, damage effects are negative)
Is Passive: False (this effect is activated by an ability)
Skill Type: Knife Style (the skill I setup in the first step)
Skill Mod: 1 (Add 1 damage for every level the caster has of the Knife Style skill)
Stack Limit: 3 (The caster can stack the ability 3 times on the target allowing it to deal up to 3 times the damage).
Allow Multiple: True (multiple casters can all put this effect on the target at the same time)
Duration: 15 (the effect stays on the target for 15 seconds)
Num Pulses: 5 (the damage from the effect will be applied 5 times)
Effect Particle: None
Tooltip: You are bleeding! You will lose health every few seconds. (if the UI is setup to display effects on the player, this message will show up when they have this effect).
The main settings to look at here are Damage Amount, Duration and Num Pulses. The Damage amount is split up by the number of pulses. In this example the 30 damage is split between 5 pulses resulting in 6 damage per pulse. There are 5 pulses over 15 seconds, so each pulse happens 3 seconds apart, the first one occurring after 3 seconds.
Once the settings are as wanted, hit Save Data. With the effect created, an Ability now needs to be setup to apply the effect.
Creating the Ability
Open the Abilities plugin and set the properties as specified below (anything not mentioned can be left as default):
Ability Type: CombatMeleeAbility
Skill: Knife Style (the Skill made for this example – this skill can be increased by using this ability)
Target Type: Enemy (can only be used on enemy targets)
Cooldown Type: LACERATE (I made a custom cooldown so this ability can only be used every 5 seconds)
Act Target1: target (we want the effect applied to the target of the ability)
Act Effect1: Bleed (the effect made in the step above)
The Ability now needs to be added to the Knife Style skill. Open the Skills Plugin again and click on the Edit button and choose the Knife Style Skill. Under the Skill Abilities section set Ability 1 to the Lacerate ability created in the step above. Make sure Level is still set to 0 and click Save.
Giving the skill to a Player
Open the Player Character Setup plugin and go into Edit mode. Choose the template you want to edit and head down to Starting Skills. Click the Add Skill button and choose the Knife Style skill. This will give the skill to any new characters made that match the Race/Class combination for this template.
Give the server a restart and everything is ready to go. Make a new character and they will have a new Lacerate ability in their action bar. Now it's just a matter of finding an enemy to attack and trying the ability out on them. You should see them take some damage every few seconds after using the ability.
Images have been added below to show how my Effect and Abilities screens looked when I was finished.