TypeError: not all arguments converted during string formatting
Code: Select all
imagebutton auto "[a_Inventory[0][3]]" action [ SetVariable('s_Message', a_Inventory[0][2]), Show('displaymessage') ]
Code: Select all
"[a_Inventory[0][3]]"
edit: in case anyone's interested, I solved my problem! originally, my code was like this:
Code: Select all
a_Inventory[0][3] = "art/inventory/bluehat_%s.png"
imagebutton auto "[a_Inventory[0][3]]" etc
Code: Select all
$ im_bluehat = "art/inventory/bluehat_%s.png"
a_Inventory[0][3] = im_bluehat
imagebutton auto a_Inventory[0][3]