256
OXCE Wishlists / Re: What do I expect from OXCE in the future.
« on: October 28, 2020, 10:15:38 pm »
You obviously don't understand me. Here's what happens in the complex:
I need both effects.
WEAPON_NO_REACT - doesn't work. Where is the mistake?
Code: [Select]
reactionUnitReaction:
- offset: 1
code: |
var ptr RuleItem weaponRuleset;
var int weaponCannotReact;
weapon.getRuleItem weaponRuleset;
weaponRuleset.getTag weaponCannotReact Tag.WEAPON_CANNOT_REACT;
if neq 0 weaponCannotReact;
set reaction_chance 0;
end;
return reaction_chance;
reactionUnitReaction:
- offset: 1
code: |
var ptr RuleItem weaponRuleset;
var int weaponNoReact;
reaction_weapon.getRuleItem weaponRuleset;
weaponRuleset.getTag weaponNoReact Tag.WEAPON_NO_REACT;
if neq 0 weaponNoReact;
set reaction_chance 0;
end;
return reaction_chance;
tags:
RuleItem:
WEAPON_CANNOT_REACT: int
WEAPON_NO_REACT: int
I need both effects.
WEAPON_NO_REACT - doesn't work. Where is the mistake?