var playerCombatant = ComponentHelper.GetCombatant (ORK.Game.GetPlayer ());
int guardStatusEffectID = 11;
var castEffect = new StatusEffect (guardStatusEffectID);
object obj = new Object ();
playerCombatant.Status.AddEffect (guardStatusEffectID, MyCombatant, castEffect, true, true, obj); // obj ???
It looks like you're new here. If you want to get involved, click one of these buttons!
targetCombatant.Status.AddEffect(effectID, userCombatant, null, false, false,
null);
Or if you want to force the effect:
targetCombatant.Status.AddEffect(effectID, userCombatant, null, true, false,
null);
effectID is the ID/index of the status effect, and you can pass null for the cast and source parameters, as they're only for advanced mechanics (e.g. effect hit chance overrides or stacking sources).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
null is very easy.
Thank you.
It was work fine.
■iOS
https://itunes.apple.com/us/app/id679133055
■Android
https://play.google.com/store/apps/details?id=com.WabiPlant.SAMURAI100SlashLite
New ORK Battle Game
■iOS
https://itunes.apple.com/jp/app/id1403510381
■Android
https://play.google.com/store/apps/details?id=com.Company.AgentFight