Jump to content
  • 0

Item degrigation


Tyler

Question

Hi all trying create weapon/armour degrigation, i think i have the created it but having an issue diplaying the current varabe amount..was looking at one of two ways, 1 in the item description text  or 2 upon hit in a chat windpw, neither of which i seem to be able to get to work, which make it hard to test if it works, it has a contition to remove item use if condition is 0 or less, (not unequip which would cause another issue but can test it yet.

 the simplest way to show that im trying to do is to link a google doc .

https://docs.google.com/document/d/1NOxqdJRhk9bAKeh_lPxewDkEIiuTnzcDzlWSqm_Rzxs/edit?usp=sharing

any help would be appreciated

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi, What you are trying to do is possible but will be a lot of work overall and wont be that efficient. Doing a source edit would be better to make this an actual function.

 

Here are some issues you will come across using events to do this:

  • You cant use \pv{variable} inside the descriptions of items/spells and such (I might raise this as a feature request as could be useful)
  • You will need to create a variable for each item you want durability
  • Need to consider what happens if the player has two of the same weapon/armour, using player variables will mean same items will have the same durability
  • Setting the durability on pickup randomly: this will allow players to just drop the item and pick it back up for new durability? unless you make the items non droppable
Link to comment
Share on other sites

  • 0

Thanks for the Answer Ainz,

lots to think about. I didnt think about it changing the for all items, might have to work out how to identify if it is equipped

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...