So I had a look at listalias attribute...
Just changing this attribute to display a hyphen in front of the object name, looks good enough for me.
The problem now is that I only want it to display the hyphen in front of the name when it is in the container. When I take the object from the container and it goes into my Inventory, the hyphen should not display.
So i have started with the most basic script:
item_x = GetDirectChildren(this)
msg (item_x)
This does display all the objects like so: Object: Sword, Object: Axe...
So now I want to change these objects listalias attribute to "-" + object.alias.
Even before I tried any For loop or check for the item in the container, I did the following to check:
item_x = GetDirectChildren(this)
msg (item_x.alias)
Now there is an error saying that item_x does not refer to an object. So I have tried a For loop and used GetObject, but it complains that I can not use a For loop; since it is not a list. GetObject does not work in any way I have tried it either.
Now I am a bit lost/dumb and pretty please ask for a bit of advice.
Thank you kindly.