Status
Not open for further replies.

Sword_of_Dusk

Ace Attorney
Veteran
Joined
Sep 13, 2015
Messages
622
Reaction score
659
First Language
English
Primarily Uses
RMMV
My problem is simple. YEP Auto Passive States doesn't seem to play nice with some other plugins, although I can't figure out why because I swear it used to work just fine. If anyone can figure out what the error MV throws at me means, I'd be quite grateful.
1643358522399.png
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
4,559
Reaction score
2,909
First Language
English
Primarily Uses
RMMV
So an unexpected identifier usually means a syntax error - missing a comma, colon, parentheses, something.

I'm not sure why you'd be getting that referencing a line in the Yanfly plugin...have you modified the file? I wouldn't think it's having to do with other plugins, because it's still constructing the database, it hasn't even gotten to code that would be referencing between things.
 

Sword_of_Dusk

Ace Attorney
Veteran
Joined
Sep 13, 2015
Messages
622
Reaction score
659
First Language
English
Primarily Uses
RMMV
@ATT_Turan I've modified nothing. Any ideas where this rogue error might be? I have no idea.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
4,559
Reaction score
2,909
First Language
English
Primarily Uses
RMMV
So just to confirm, line 381 in that file starts with obj.passiveConditionEval ?

I'm not that knowledgeable on how eval works, it might be possible that a syntax error in one of your custom passive conditions would pop the error out to there - do you have any?

If you switch off any of the other plugins in your project, does it have any effect, or does it always give this error? That would really be the way to narrow down some kind of weird conflict vs. an error someplace on your end.
 

Sword_of_Dusk

Ace Attorney
Veteran
Joined
Sep 13, 2015
Messages
622
Reaction score
659
First Language
English
Primarily Uses
RMMV
@ATT_Turan So I turned off all of the plugins the error mentions aside from Auto Passive States, and I get this error:
1643498730221.png
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
4,977
Reaction score
4,592
First Language
English
Primarily Uses
RMMZ
What passive state notetags have you added?
 

Sword_of_Dusk

Ace Attorney
Veteran
Joined
Sep 13, 2015
Messages
622
Reaction score
659
First Language
English
Primarily Uses
RMMV
What passive state notetags have you added?
A few things, but using my test copy I found what appears to be the culprit:

<Custom Passive Condition>

if user.hasSkill(195){

condition = true

} else {

condition = false

}

</Custom Passive Condition>

I was trying to use a condition with if user.isLearnedSkill() alongside FROG Talent Core and Talent Based Traits to do some stat boost passives, but that wasn't recognizing my character having learned the skills, so I tried using hasSkill instead, but it's caused this error.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
4,977
Reaction score
4,592
First Language
English
Primarily Uses
RMMZ
You've forgotten the brackets around your if statement condition.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
4,977
Reaction score
4,592
First Language
English
Primarily Uses
RMMZ

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
4,559
Reaction score
2,909
First Language
English
Primarily Uses
RMMV
And just to offer a tip you might find handy for the future, you could save yourself some typing this way:
Code:
<Custom Passive Condition>
condition=user.hasSkill(195);
</Custom Passive Condition>
 

Sword_of_Dusk

Ace Attorney
Veteran
Joined
Sep 13, 2015
Messages
622
Reaction score
659
First Language
English
Primarily Uses
RMMV
And just to offer a tip you might find handy for the future, you could save yourself some typing this way:
Code:
<Custom Passive Condition>
condition=user.hasSkill(195);
</Custom Passive Condition>
Slick. Thanks, man.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,621
Reaction score
9,218
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I just bought VN Maker with 75% off, just for the assets.
IGMC is back everyone!
Fun challenge: Guess the name of this enemy!
Watchman.png
Nearly done with the topmost deck of the SS Astrale Symphonie (she's got a name at last!). Still needs a lot of work but at least now it is vaguely recognizable as a ship deck. Working at a snail's pace but it's coming together. :kaopride:
Screenshot-2022-06-30-104933.png
Letting people know I'm debating leaving RM, and thus this forum. I'll continue to keep in touch with any friends I've made here, but between Unity being better suited to my needs and people on here getting increasingly horrible, I think switching my games to Unity might be better for my mental health.

Forum statistics

Threads
123,203
Messages
1,154,883
Members
161,578
Latest member
Amieques
Top