RPG-Inventory - Drag and Drop

1

Index

Stats

11,052 visits, 25,271 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.

Published on 6 Jan, 2012. Last updated 19 Feb, 2019

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

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