/
roa/
roa/lib/boards/
roa/lib/config/
roa/lib/edits/
roa/lib/help/
roa/lib/misc/
roa/lib/plrobjs/
roa/lib/quests/
roa/lib/socials/
roa/lib/www/
roa/lib/www/LEDSign/
roa/lib/www/LEDSign/fonts/
roa/lib/www/LEDSign/scripts/
roa/src/s_inc/
roa/src/sclient/
roa/src/sclient/binary/
roa/src/sclient/text/
roa/src/util/
MRANDOM

-=mobproc command=-

mrandom
{
  block of executable mobproc commands
}

This command is used in SPC_MOBPROC mobs.  It is used to offer a bit of
randomness to mobprocs.  Any # of commands may be placed in an mrandom
block and only 1 will be chosen and executed per pass through the mrandom
block.  For example:
...
mrandom
{
say random 1
say random 2
say random 3
}
...

In the above example, each of the say commands has a 33%% chance of being
chosen and executed.  To decrease the percentage, add empty lines with a
leading ampersand:
...
mrandom
{
say random 1
say random 2
say random 3
&
}
...

In the above example, each say has only a 25%% chance of being chosen and
executed.  If the ampersand is chosen, nothing happens.

The command mrandom is a block structured mobproc command, meaning a block
structure MUST ALWAYS follow an mrandom.  Also, you cannot put other
blocked commands in an mrandom block.  If you need to use blocked commands
as a result of something random, use mgoto and go to some tag to handle
it.