ID:155343
 
Player A needs to give Player B an item, but i need to check to see what items player A has, and need to check to see if that item is Trade-able.


I'm starting on code for this right now, but found myself scratching my head, any advice?


You can run a for() loop through Player A's inventory and have a trade-able variable on all objects that are tradable.

You can easily allow Player B to pick an item by using the input() proc, and check the trade-able variable after it.
In response to Lugia319
interesting, i'll ponder that for a bit, see if it helps.
In response to Lugia319
still not coming out quiet right, can you show me a minor example with how to use for() properly?
In response to Komuroto
<small>for()</small> example:

var list/randomness = list( "google" , "yahoo" , "bing" )

for( /* a variable. */ var/websites in randomness )

world << websites


It goes through the list and outputs each name that is in the list. ( for the way i'm using it. )
In response to Neimo
you seem to be the only one who uses your little annotations in the middle of your coding , kinda through me off there :D
In response to Neimo
so the list in this case would just be src.contents?
In response to Komuroto
Indeed, it'll be your contents. I grew attached to my little annotations, as you can see.. !