Jump to content
  • 0

[DEV] How to know which item is in use in slot???


nvh

Question

How to add 100 point stats for item in slot 7???

"this_item_im_using" just a example because I don't know how to call the item in that slot

"Equipment[7]" is slot Weapon.

"== -1" is slot empty.

thank you!

af5d085375dd085260c96cbdb25dd368.png

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
7 hours ago, Cheshire said:

I believe the equipment array stores the inventory slot of the equipped item so you should be able to find it through there. 

Do you have specific code suggestions?

Link to comment
Share on other sites

  • 0
9 hours ago, Cheshire said:

I believe the equipment array stores the inventory slot of the equipped item so you should be able to find it through there. 

i try "Items[7].StatBuffs[0] += 1000;"

it adds up to an item in inventory slot 7

Link to comment
Share on other sites

  • 0
6 hours ago, Cheshire said:

I think you might want to read what I said again. 

The equipment array holds the inventory slot that the item that's equipped is in. 

 

So it'd be Items[Equipment[7]] if memory serves me right. 

is there a way to update the parameters on the device?? I added successfully but it doesn't show the number of added on itemdescwindow

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