KnightDragoon25 0 Posted March 26, 2017 As the title says, is it possible for me to have a state require a specific weapon type before it takes effect? It would be great if I didn't need a script for this. Share this post Link to post Share on other sites
Harosata 6 Posted April 1, 2017 Your question is a bit too vague. What do you exactly mean by requiring a weapon for the effect? -The state can only be applied on the target if the user has the weapon -The state can only be applied on the target if the target has the weapon (especially if the user targets themselves with this state) -The state can be applied on the target, but the target needs a weapon to activate some features. Himework's Conditional States and Feature Conditions are useful for the second and third questions. --- Also, if user.actor? and user.weapons.any? {|weapon| weapon.wtype_id == 1} . The weapons array is only for actors (your party, not enemies) and we use any? to return true if at least one condition is true. In this case, if at least one weapon (out of two for dual-wielding) has the required weapon type, it's true. It's a good thing that Conditional States and Feature Conditions both use formulas, so you can check for weapons in that case. Share this post Link to post Share on other sites