Random Greet

Posted by Cuprohastes on Mon 11 Aug 2003 01:52 PM — 1 posts, 8,724 views.

#0
This is an alias: rwave *
It produces one of 9 random greetingse e.g.

rwave Alex
produces
Cuprohastes waves to Alex
or
Cuprohastes nods to Alex
or...well, you get the idea. Edit it for your MUCK's syntax.

<alias
match="rwave *"
enabled="y"
expand_variables="y"
send_to="12"
sequence="100"
>
<send>randomize
social = Int(8*rnd)

if social=0 then
World.Send &quot;:waves to %1&quot;
elseif social=1 then
World.Send &quot;:nods to %1&quot;
elseif social=2 then
World.Send &quot;:nods politely to %1&quot;
elseif social=3 then
World.Send &quot;:waves politely to %1&quot;
elseif social=4 then
World.Send &quot;:notices %1 and waves&quot;
elseif social=5 then
World.Send &quot;say Hi %1&quot;
elseif social=6 then
World.Send &quot;say Hello %1&quot;
elseif social=7 then
World.Send &quot;:tailwaves to %1&quot;
elseif social=8 then
World.Send &quot;:wingwaves to %1&quot;
end if</send>
</alias>