I have a item in my shop that costs 10 points and my code is supposed to charge the player before it multiplies the price by 1.5 then floor rounds it the code looks like this:
ppc = ppc + 1
print("ppc =",ppc)
msg.post("Button", ppc)
msg.post("Button", "charge_item_2")
msg.post("Button", item_2_price)
item_2_price = item_2_price * 1.5
item_2_price = math.floor(item_2_price)
print("item price =", item_2_price)
ppc means points per click. it should subtract points in another script and then multiply but instead it multiplies firs then subtracts. the subtraction code looks like this
points = points - item_2_price