ID:154986
 
Just wondering if someone can give me an example of how prob(x) is used in a pick() situation.

I'm aware the reference gives an example, but the format is incomprehensible to me, and I don't use that type of format.

Example from the Reference

obj/food
verb/eat()
usr << pick (
"[usr] eats \a [src].",
prob(50)
"[usr] devours \a [src].",
prob(25)
"[usr] wolfs down \a [src]."
)
del(src)


What I want

pick("green" prob(50), "red" prob(30))
Since those are line breaks in the reference, I'd assume you'd use a semicolon for one-liners.
pick(prob(50); "green", prob(30); "red")

// expanded
pick(
prob(50); "green",
prob(30); "red")

// expanded more
pick(
prob(50)
"green",
prob(30)
"red")