How do I condition Element_Rate (x)?

I want to have it so that there is a state of say Weak Water when element and Resist Water.

I have a character that resists water at 33%.

I'm using http://victorscripts.wordpress.com/rpg-maker-vx-ace/gameplay-scripts/passive-states/

But I'm also curious what the string would be universally.

I tried 

<passive state: 192> #resist water#self.element_rate(6) < 0.71;</passive state>but nope.

I've never used element_rate in a sting before so I'm not entirely for sure how to work it.

I'm using the Resist and Weak states to use in Enemy AI conditions for if a given state is applied or not applied. That's why I ask for this.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Thanks for providing the link. 🙂
>is sad that you don't know zee solution   🤣
lol! Yeah, I was at work at lunchtime, so didn't have Ace with me. I also don't really understand your question.


I'm sure someone else will be by soon enough to help you out 🙂
Your example should work. Perhaps it is the semicolon behind it interfering?

Also, your link links to Victor's Automatic Battlers script for some reason.
For some reason it works when you tag an actor with it and not a state.

Because I have a state called Main that's always applied to everyone (so that I don't have to copy passive and automatic states and whatnot to every single battler) and I put the passive state there.

Would you know why that is?

Shaz, I made it so that when water attribute efficiency is below 71%, the state Water Resist is applied. And I'm going to have it so that when water attribute efficiency is above 129%, the state Water Weak is applied. Since Automatic Battlers can only use 1 target condition and doesn't support strings (to my dismay, athough Victor isn't posting on his script sites now, and not a lot of people support his scripts), I'm going to have it (courtesy of Automatic Battlers) so that say if its Strategy is "Offensive Element Weakness", a water creature will target an actor with Water Weak at highest Priority, a target without Water Resist with mid-priority, and one with Water Weak at lowest priority.

Code:
<passive state: 192>self.element_rate(6) < 0.71;</passive state>
If it works on an actor and not on a state then it either doesn't support state tagging, or the script doesn't pull properties from states.
Lemme check and see if Passive States works with states.

# Actors, Classes, Wapons, Armors, States, Enemies and Skills note tags:# Tags to be used on Actors, Classes, Wapons, Armors, States, Enemies and# Skill note boxes.## <passive state: id, id># conditions;# </passive state>Yeah. But the only thing that matters that it works. I'll just have a base battler that has everything to copy that won't be on the Main state.

I'm not for sure how well this will work for good enemy AI, what I'm trying to do. But I'll probably share my experiences.
So, solved

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-condition-element_rate-x.25578/