Jump to content
  • 0

How can i make a unique item? (Intersect)


Zerinho

Question

My question is simple, it's possible to do something like a item that can only be buy one time? like one house key's that disappears when you buy it at the shop? but i mean a item that if one player buy it, another player can't buy it. I need that to do a house system at my project that work properly.

It is possible to do that only with events and not editing the engine source? Thank you.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1
2 hours ago, Zerinho said:

My question is simple, it's possible to do something like a item that can only be buy one time? like one house key's that disappears when you buy it at the shop? but i mean a item that if one player buy it, another player can't buy it. I need that to do a house system at my project that work properly.

It is possible to do that only with events and not editing the engine source? Thank you.

Yes this can be done very simply using variables.

 

Add a Global Variable: Type: Boolean, Name: "House Key Owned"

 

Add a map event:

Add a command - Condition: House Key Owned = false

Give House Key to player

Else

Show Text: House already owned.

 

This is very simple to add this to you game so each house has a key, that can only be created once, you can expand upon this by asking for money and such to buy the key, have it so a player can sell the key back, which would change the "House Key Owned = False". Each house would need its own Variable, also you need to consider what happens if that key is lost.

 

It would be better to do a key but also assigned the house to the player who purchased it (ids), or like a deed, so if the key is lost they can purchase it back for a small fee, my game does housing something along those lines :P

Link to comment
Share on other sites

  • 0
1 hour ago, Ainz Ooal Gown said:

Yes this can be done very simply using variables.

 

Add a Global Variable: Type: Boolean, Name: "House Key Owned"

 

Add a map event:

Add a command - Condition: House Key Owned = false

Give House Key to player

Else

Show Text: House already owned.

 

This is very simple to add this to you game so each house has a key, that can only be created once, you can expand upon this by asking for money and such to buy the key, have it so a player can sell the key back, which would change the "House Key Owned = False". Each house would need its own Variable, also you need to consider what happens if that key is lost.

 

It would be better to do a key but also assigned the house to the player who purchased it (ids), or like a deed, so if the key is lost they can purchase it back for a small fee, my game does housing something along those lines :P


God!! thank you bro, your game it is playable? can you send me the site/topic for a test? 

Link to comment
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
×
×
  • Create New...