Jump to content
Sign in to follow this  
KnightDragoon25

Can I make a state require a weapon type?

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted