Is there any way to get this code below(which may be improper syntax, so I am viewing it as pseudocode) to work by default in engine by activating a switch in common event via a skill being active or not? Essentially want Common Event: Acid Resist to become active upon a character's acid resist skill being active, and then I want any incoming poison damage over time effects to be reduced by an amount based upon which tier of acid resist the character has.
I've noticed you can do stuff to a specific character, but you cannot select ANY character, it has to be a specific one. Though, I do not see an option via common events to reduce damage dealt by a state through formula, and only for it to apply default options.
If anyone could help me put this code into action, that would be great. For reference I am using Fomar's Passive Skills plugin, but none of the statescore or any of those plugins. If there is a plugin I could use to do all of this, I would appreciate being pointed in the direction of the proper syntax in said plugin.
Thank you for your time.
I've noticed you can do stuff to a specific character, but you cannot select ANY character, it has to be a specific one. Though, I do not see an option via common events to reduce damage dealt by a state through formula, and only for it to apply default options.
If anyone could help me put this code into action, that would be great. For reference I am using Fomar's Passive Skills plugin, but none of the statescore or any of those plugins. If there is a plugin I could use to do all of this, I would appreciate being pointed in the direction of the proper syntax in said plugin.
Thank you for your time.
C++:
if AcidResistSkill==True
{
AcidResist(Switch)=On;
PoisonDamageOverTime*0.6;
return PosionDamageOverTime;
}
else if AcidRes2==True
{
AcidRes2(Switch)=On;
PoisonDamageOverTime*0.4;
return PosionDamageOverTime;
}
else if AcidRes3==True
{
Acid Res3(Switch)=On;
PoisonDamageOverTime*0.2;
return PosionDamageOverTime;
}
else
return PosionDamageOverTime;