PDA

View Full Version : [Explain it to me] Don't just read it provide me some orientation or any code to ....



mikjail
08-27-2016, 02:07 AM
help the comunnity and make a better forum full of documentation.


how do i get the index of a backpack inside the main backpack and how do i check if is empty or at less is an item inside, what i'm trying to do is check if my lootBP has items inside if is true then go to deposit items label if not go to hunt? anybody film me?

i've check in the data dir trying to understand what the functions does, i know it has to bee related with the container class and self class but i dont get it.

also i want i little help in creating a blackloot list like those made by the team of ox

Trykon
08-27-2016, 09:07 AM
There is function for full bp, also you can go around and just check if on spot 19 (counting starts from 0, not 1) is any item

If you want to get index of bp inside main, launch loop around bp slots, and on eash of them check if it is desired bp
If you want to check if there are items inside loot bp, launch loop inside it with a counter, it will count items inside ;)
Hope i helped, if you cannot write it, then ask somebody, or just dont bother with scripting and leave it for others...

mikjail
08-27-2016, 10:44 PM
There is function for full bp, also you can go around and just check if on spot 19 (counting starts from 0, not 1) is any item

If you want to get index of bp inside main, launch loop around bp slots, and on eash of them check if it is desired bp
If you want to check if there are items inside loot bp, launch loop inside it with a counter, it will count items inside ;)
Hope i helped, if you cannot write it, then ask somebody, or just dont bother with scripting and leave it for others...

no it doesn't help me that's what i am trying to do but all keeps in words

Trykon
08-27-2016, 11:11 PM
no it doesn't help me that's what i am trying to do but all keeps in words

http://xenobot.wikia.com/wiki/XenoBot_Wiki
I learned my part here and:
https://www.lua.org/pil/1.html
Enjoy...