ID:148644
 
In my game, I want a partially random system, and I have it made, but am unsure what's causing this error:
loading WorldofWizards.dme
wands.dm:20:error::invalid expression

WorldofWizards.dmb - 1 error, 0 warnings (double-click on an error to jump to it)

The code is:
obj
wand
icon = 'wand.dmi'
proc
Use()
primaryuse = pick(
"Charms",
prob(50)
"Curses",
prob(5)
"Summoning",
prob(25)
"Murder",
prob(20)
) // Source of error
That last 'prob(20)' isn't attached to a value. The prob() needs to come before a value to be selected.

From the reference:

pick (
"[usr] eats \a [src].",
prob(50)
"[usr] devours \a [src].",
prob(25)
"[usr] wolfs down \a [src]."
)

The first value doesn't have a prob() attached to it, and is considered the baseline value. The second and third values will be selected 50% and 25% as often as the baseline value.

In response to Flick
Thanks for the help.