Jump to content
Sign in to follow this  
boutterson

Or statements for quest

Recommended Posts

I've been working on a class quest. Where the actor does an action and gains a item to give them a new class. got it all to work for the most part. Except I want the player to have the ability to come back and get the item again if they choose to. But I don't want them them to have more of that item a time. 

So I was working with conditional branching and using a custom script, making a check at the current class of the player . 

This is what I got so far, as I only want the option for the dialogue if the actor is one of these three classes. $game_actors[1].class_08 || $game_actors[1].class_10 || $game_actors[1].class_12

But it keeps returning an "undefined method error." 

I've done a couple different options trying to see where the error lies. 

Any help would be great. 

Share this post


Link to post
Share on other sites

Use variable command with script condition.

$game_actors[1].class.id

Then do condition check against the number.

image.png.f12dc62f1cf72ab0b34dd6ed978ca0ca.png

 

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