<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.slothmud.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MUDL%3Adie_roll</id>
		<title>MUDL:die roll - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.slothmud.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MUDL%3Adie_roll"/>
		<link rel="alternate" type="text/html" href="http://wiki.slothmud.com/wiki/index.php?title=MUDL:die_roll&amp;action=history"/>
		<updated>2026-05-18T18:21:47Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wiki.slothmud.com/wiki/index.php?title=MUDL:die_roll&amp;diff=65258&amp;oldid=prev</id>
		<title>Teker: Created page with &quot; __TOC__   = Summary =  {|class=&quot;abilitiestable&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; ! Function Name | die_roll |- ! Settable | No |- ! Returns | Integer |}   {|class=&quot;...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.slothmud.com/wiki/index.php?title=MUDL:die_roll&amp;diff=65258&amp;oldid=prev"/>
				<updated>2018-11-07T23:36:31Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; __TOC__   = Summary =  {|class=&amp;quot;abilitiestable&amp;quot; border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; ! Function Name | die_roll |- ! Settable | No |- ! Returns | Integer |}   {|class=&amp;quot;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Summary =&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;abilitiestable&amp;quot; border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
! Function Name&lt;br /&gt;
| die_roll&lt;br /&gt;
|-&lt;br /&gt;
! Settable&lt;br /&gt;
| No&lt;br /&gt;
|-&lt;br /&gt;
! Returns&lt;br /&gt;
| Integer&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;abilitiestable&amp;quot; border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
! Parameter Options&lt;br /&gt;
|-&lt;br /&gt;
| Number of Dice (integer), Size of Dice (integer)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This function performs a die roll using the specified number and size of dice.  It is similar to using the &amp;quot;#d#&amp;quot; notation in MUDL but allows for variables to be provided rather than constants.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
setproc &amp;lt;parent&amp;gt; # NUM 3&lt;br /&gt;
setproc &amp;lt;parent&amp;gt; # SIZE 5&lt;br /&gt;
&lt;br /&gt;
setproc &amp;lt;parent&amp;gt; # on_foo&lt;br /&gt;
msg_room(%room,&lt;br /&gt;
        '' + die_roll(integer(get_attr('NUM')), integer(get_attr('SIZE')))),&lt;br /&gt;
return(true)&lt;br /&gt;
@&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
setproc &amp;lt;parent&amp;gt; # PROC_ENABLED 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;br /&gt;
[[Category:MUDL|die_roll]]&lt;/div&gt;</summary>
		<author><name>Teker</name></author>	</entry>

	</feed>