Message Sensor Python Help!!!

Hey, I’ve made one object (lets call it A) that at some point creates a message with a property as body (The actuator message has subject and Property-Body)

now there is object B that has sensor message with same subject as object A’s message
so that it gets the message, but the body is not here, ive searched all over the internet for help and I found out that I can do that with python (I know some python) i have found stuff like “get the list of bodies” but I dont get it very much

What I want:I want object B to get the message and change its property at the same value as object A’s property

plz be as detailed as possible and plz dont end at the point “list = blah blah shows list of bodies” because I dont get how that works and how I can copy that to a property

I dont know if all that sounds complicated, if it does plz tell me to try to explain it better thanks a lot ;DD

Look at the S2A library.

S2A.firstBodyToValue is what you can use. It does what you described.

How to use it:
Add the S2A.py to you blend file (or place it at the same location).

Logic bricks:
your message sensor -> Python controller (Module S2A.firstBodyToValue) -> Property actuator (Assign, Prop: yourPropName, Value: will be set by the controller)

I hope it helps

Monster thx soooooo much it worked perfect ;D