Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
OverlordMao

[VX]Only one of it

Question

Anyone know how to make it so that you can only have one item of something (Like a book). I wouldn't be asking this, but some of these items are going to be obtained through a shop and I've tried everything I could think of to make sure you can't have two of the same item, but... I need help.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Uh, you could do a few things. Get someone to script you something...

Or you could make a seperate option in the game. For example:

 

Shopkeeper:

"Hello, what can I get you sir?"

[shop]

[specialty]

 

So the first option can open up the shop, and then you can use the second option to be like.

 

Shopkeeper:

"Well I have the Book of Mathmatics for 30 gold."

[buy]

[Don't Buy]

 

Then when you buy it, you can do a fork condition at the start of the event that predetermines if you have the item or not, if you don't. It'll do the above. If you do, it just takes you straight to the shop.

Share this post


Link to post
Share on other sites
  • 0
Uh, you could do a few things. Get someone to script you something...

Or you could make a seperate option in the game. For example:

 

Shopkeeper:

"Hello, what can I get you sir?"

[shop]

[specialty]

 

So the first option can open up the shop, and then you can use the second option to be like.

 

Shopkeeper:

"Well I have the Book of Mathmatics for 30 gold."

[buy]

[Don't Buy]

 

Then when you buy it, you can do a fork condition at the start of the event that predetermines if you have the item or not, if you don't. It'll do the above. If you do, it just takes you straight to the shop.

 

I didn't think of that. Thanks.

Share this post


Link to post
Share on other sites
  • 0

You didn't think of that? Hmm, well Overlord, here is a tip. Whenever you don't know how to do something stick a conditional branch and a variable or two in your event. Those are the two most useful event actions.

 

Also, you have one more option, but it isn't nearly as easy as the second thing Arky mentioned. You could use a variable and a switch to determine if he has the item already and turn on a switch when he does. I'm only saying this so you know you aren't limited, so you shouldn't actually use this method.

 

Good luck with your game!

Share this post


Link to post
Share on other sites
  • 0

I did try and use a Conditional Branch and a Variable before I posted this, but I had it with a Shop window for the item and it didn't work. the way Ark said made me relize I almost had it right before.

Share this post


Link to post
Share on other sites
  • 0
As long as everything works out for you.. And you learned something in the process. I'm happy.

 

 

I totally agree with this. If you learned something in the process, thats wonderful! Good luck Ovvy (new nickname ;)).

 

What is your game about anyways? (PM me about it)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...