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
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.