proc
Rand_Dir()
var/r = rand(1,8)
r==1 ? return NORTH : r==2 ? return EAST : r==3 ? return SOUTH : r==4 ? return WEST : r==5 ? return NORTHWEST : r==6 ? return NORTHEAST : r==7 ? return SOUTHEAST : return SOUTHWEST
Problem description:
loading RPG - Unnamed.dme
loading Interface.dmf
Code\Procs and Verbs.dm:4:error: : missing expression
Code\Procs and Verbs.dm:4:error: : missing expression
Code\Procs and Verbs.dm:4:error: : missing expression
Code\Procs and Verbs.dm:4:error: : missing expression
Code\Procs and Verbs.dm:4:error: : missing expression
Code\Procs and Verbs.dm:4:error: : missing expression
Code\Procs and Verbs.dm:4:error: : missing expression
Code\Procs and Verbs.dm:4:error: : missing expression
Code\Procs and Verbs.dm:4:warning: ?: statement has no effect
Code\Procs and Verbs.dm:58:warning: dir: variable defined but not used
Meet the pick proc...
http://www.byond.com/docs/ref/info.html#/proc/pick