var/sellable
var/sellprice
var/buyprice
obj
sword
icon = 'sword.dmi'
sellable = 1
sellprice = 190
shield
icon = 'shield.dmi'
sellable = 1
sellprice = 180
bag
icon = 'bag.dmi'
sellable = 1
sellprice = 300
shopkeeper
icon = 'shopkeeper.dmi'
icon_state = "normal_s"
obj/verb
shopkeeper
buy() // do i put anything in the parenthesis?
switch(input("Choose what you wish to buy","?")in list("Sword(200)","Shield(190)","bag(400)"))
How would i know what they picked there...and:
sell()
switch(input("Choose what you wish to sell","Sell?") if usr.inventory=sword in list("Sword(200)"))
How would i get a variable to list every obj with sellable 1 in this list?
sorry about the bad coding, help me with variable setting aswell? Thanks, i just started coding and i need alot of help