RPG-Inventory - Drag and Drop

1
  • 54 favourites

Index

Stats

10,229 visits, 23,960 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Generate a list of items

Since we marked both inventorySlot and inventoryItem as global, we have to hide them on this layout:

Now, within the same "Start of Layout" event, we generate the list like this:

This is easily down by itteration over all instances of the inventorySlots and fillter them by the owner and if they are empty or not.

Then we retrieve the itemUID and use this to get the name of the shown animation, which is, in our example, the string representation of the item.

....and this, again concludes another tutorial.

Please let me know, if you need any further information.

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!