Add a poisoned weapon using Attack Status Effects, or a toxic enemy using Defence Status Effects.
Attack and defence status effects are just another way of doing status effect changes automatically when using an ability or item. While you can just add those changes to the ability/item directly, you might want to give a weapon a poison effect when it’s used to attack without setting up a completely new attack for the weapon.
Attack status effects will use the effect changes of the user of an ability/item on the target. Defence status effects will use the effect changes of the target on the user. Both can be added to classes, combatants, passive abilities, equipment and status effects – allowing a wide variety of gameplay mechanics.
In this tutorial, we’ll use attack/defence status effects to achieve the following:
- Poison Sword
A weapon that will add the Poison status effect on the target when used in physical attacks. - Toxic Pants
An enemy that will add the Poison status effect on the attacker/user when being physically attacked.
Let’s get to it!
Creating the Poison Sword
Open the ORK Framework editor and navigate to Inventory > Weapons, copy the Short Sword and change the following settings.
- Name
Set to Poison Sword.
Attack Status Effects
Click on Add Status Effect to add an attack effect to the weapon.
- Status Effect
Select Poison. - Change
Select Add.
And that’s it for the new weapon.
Don’t forget to enable the weapon in the player’s class, otherwise he wont be able to equip it. Navigate to Combatants > Classes, select Player Class and change the following settings.
Weapons
- Poison Sword
Enable this setting.
And that’s it for the class update.
Creating Toxic Pants
We’ll base Toxic Pants on Evil Pants – navigate to Combatants > Combatants, copy Evil Pants and change the following settings.
- Name
Set to Toxic Pants.
Defence Status Effects
Click on Add Status Effect to add a defence effect to the combatant.
- Status Effect
Select Poison. - Change
Select Add.
And that’s it for the new combatant.
Using attack/defence effects in physical attacks
Now, all we have to do is allow using the attack and defence status effect changes in all our physical attacks. Navigate to Status > Abilities and change the following settings in the Attack and Mug Attack abilities.
Target Changes
- Use Attack Effects
Enable this setting. - Use Defence Effects
Enable this setting.
Target Critical Changes
- Use Attack Effects
Enable this setting. - Use Defence Effects
Enable this setting.
And that’s it – click on Save Settings to save the changes.
Now, when equipping the Poison Sword, the targeted enemy will additionally be poisoned, even if the attack itself doesn’t give that effect. Also, when attacking Toxic Pants with an attack, the attacker will be poisoned as well.