Code Search for Developers
 
 
  

utilem.html from POL-distro scripts at Krugle


Show utilem.html syntax highlighted

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>POL Scripting Reference</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="POL, EScript, documentation" name=keyword>
<META content="Racalac, Rykard" name=Author>
<STYLE type=text/css>BODY {
	FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
TD {
	FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
P {
	FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
</STYLE>
</HEAD>
<BODY bgColor=#f0f0f0><?xml version="1.0" encoding="UTF-8"?>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 14pt; TEXT-ALIGN: left">File: 
Util.em</P>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; TEXT-ALIGN: left">Description: 
Utility functions<BR>Last Modified: 1/22/2003</P>
<TABLE cellSpacing=0 cellPadding=1 rules=groups width="75%" align=center 
bgColor=#dddddd border=1 frame=box>
  <TBODY>
  <TR><A name=#RandomDiceRoll>
    <TH align=middle colSpan=2>RandomDiceRoll(String 
  dice_string)</TH></A></TR></TBODY>
  <TBODY>
  <TR bgColor=#cccccc>
    <TH align=left colSpan=2>Parameters:</TH></TR></TBODY>
  <TBODY>
  <TR bgColor=#d4d4d4>
    <TD>Name</TD>
    <TD>Type</TD></TR></TBODY>
  <TBODY>
  <TR>
    <TD width="50%"><VAR>dice_string</VAR></TD>
    <TD>String</TD></TR></TBODY>
  <TBODY>
  <TR bgColor=#cccccc>
    <TH align=left colSpan=2>Explanation</TH></TR></TBODY>
  <TBODY>
  <TR>
    <TD colSpan=2>Returns a random number according to the passed die roll 
      string. This is standard NdS+X format. N=number of dies to roll, S=number 
      of sides per die, X=integer to add(or subtract) after roll.</TD></TR>
  <TR>
    <TD colSpan=2>Here's some acceptable examples: </TD></TR>
  <TR>
    <TD colSpan=2><PRE>4
d4
d6+6
d6-2
2d12
2d8+12
2d8-4
</PRE></TD></TR></TBODY>
  <TBODY>
  <TR bgColor=#cccccc>
    <TH align=left colSpan=2>Return values</TH></TR></TBODY>
  <TBODY>
  <TR>
    <TD colSpan=2>Valkyrie's pedantic wording: "returns an integer greater or 
      equal to N+X and not more than N*S+X"</TD></TR></TBODY></TABLE><BR><BR><BR>
<TABLE cellSpacing=0 cellPadding=1 rules=groups width="75%" align=center 
bgColor=#dddddd border=1 frame=box>
  <TBODY>
  <TR><A name=#RandomInt>
    <TH align=middle colSpan=2>RandomInt(integer 
  below_this_number)</TH></A></TR></TBODY>
  <TBODY>
  <TR bgColor=#cccccc>
    <TH align=left colSpan=2>Parameters:</TH></TR></TBODY>
  <TBODY>
  <TR bgColor=#d4d4d4>
    <TD>Name</TD>
    <TD>Type</TD></TR></TBODY>
  <TBODY>
  <TR>
    <TD width="50%"><VAR>below_this_number</VAR></TD>
    <TD>Integer</TD></TR></TBODY>
  <TBODY>
  <TR bgColor=#cccccc>
    <TH align=left colSpan=2>Explanation</TH></TR></TBODY>
  <TBODY>
  <TR>
    <TD colSpan=2>Returns a random integer below the passed parameter and 
      greater or equal to zero.</TD></TR></TBODY>
  <TBODY>
  <TR bgColor=#cccccc>
    <TH align=left colSpan=2>Return values</TH></TR></TBODY>
  <TBODY>
  <TR>
    <TD colSpan=2>returns integer R such that 0 less or equal to R less than 
      below_this_number</TD></TR></TBODY></TABLE><BR><BR><BR>
<HR>

<P style="FONT-WEIGHT: bold; FONT-SIZE: 9pt; TEXT-ALIGN: center">If you know if 
any information is incorrect on these pages, mail your corrections to 
racalac@burdell.org </P>
<P style="FONT-WEIGHT: bold; FONT-SIZE: 7pt; TEXT-ALIGN: center">Copyright ©2003 
David Carpman, all rights reserved. DO NOT REPRODUCE, MIRROR, ALTER, SPINDLE, 
MUTILATE, OR SIT ON. </P></BODY></HTML>




See more files for this project here

POL-distro scripts

The default distribution of scripts for the POL server project.

Project homepage: http://sourceforge.net/projects/pol-distro
Programming language(s): ASP,Pascal
License: other

  basicem.html
  boatem.html
  builtintextcmds.html
  cfgfileem.html
  commands.txt
  configfiles.html
  datafileem.html
  escriptguide.html
  events.html
  fileem.html
  filenames.txt
  gumps.html
  httpem.html
  index.html
  mathem.html
  nodes.txt
  npcem.html
  objref.html
  osem.html
  performance.html
  picture_gump_finish_1.png
  polsysem.html
  privilages.html
  scripttypes.html
  unicodeem.html
  uoem.html
  utilem.html