For example.
I have a Gambler character that uses a skill based on a random roll (thanks to this guy here for the idea). For the sake of discussion, this move is called Damage Roll. It works like the formula in the link. A higher random value does more damage after the multiplier.
I got that part working right. But now I want to have an item that alters the formula for Damage Roll a certain way. Let's say the players finds an item called Loaded Dice. What would be the best option for the following, and how would one implement this?
1. Force a single re-roll of the random function if the number generated is less than 4
2. Force the random function (or eliminate it all together) to produce a 4, 5, or 6.
Another example.
Having an item that boosts the effect of damage or healing by providing another mulitplier. So, an item called Healing Talisman, and boosts HP restored by 25%.
So we'd have ((Original Healing Formula) * 0.25).
Do I just make a second skill that replaces the original one as long as the item is equipped, or can the formula line handle understanding the presence of an equipped item?
I have a Gambler character that uses a skill based on a random roll (thanks to this guy here for the idea). For the sake of discussion, this move is called Damage Roll. It works like the formula in the link. A higher random value does more damage after the multiplier.
I got that part working right. But now I want to have an item that alters the formula for Damage Roll a certain way. Let's say the players finds an item called Loaded Dice. What would be the best option for the following, and how would one implement this?
1. Force a single re-roll of the random function if the number generated is less than 4
2. Force the random function (or eliminate it all together) to produce a 4, 5, or 6.
Another example.
Having an item that boosts the effect of damage or healing by providing another mulitplier. So, an item called Healing Talisman, and boosts HP restored by 25%.
So we'd have ((Original Healing Formula) * 0.25).
Do I just make a second skill that replaces the original one as long as the item is equipped, or can the formula line handle understanding the presence of an equipped item?