obj/vendingMachine
icon = 'interactables.dmi'
density = 1
icon_state = "vm"
verb/insert_credit()
usr << "ding"
set src in view(1)
pick(
new/obj/green_soda(loc),
prob(50)
new/obj/blue_soda(loc),
prob(50)
)<----- error: : invalid expression
Ive been trying to make a vending machine that gives you a random soda and it keeps giving me a "257:error: : invalid expression"
|
code goes here
</dm>
The issue is that pick() isn't a valid expression on its own.
Probability weights actually need to be before the element they influence.
Also, your setting has to be at the top of the verb.