Difference between revisions of "Manual:DIL Manual/spellindex()"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
(XML import)
 
Line 1: Line 1:
 +
<span id="bfsplind"></span>
 +
integer spellindex(s : string)
 +
    s  : The abbreviated or full spell name
  
 +
    Returns: -1 if no such spell, otherwise it returns the spell index
 +
            for that spell.
  
 +
    Example:
 +
      s := "cu li wo"; /* cure light wounds */
 +
      i := spellindex(s);
 +
 +
---~---~---~---~---~---~---~---~---
 
<span id="bfsplind"></span>
 
<span id="bfsplind"></span>
 
  integer spellindex(s : string)
 
  integer spellindex(s : string)

Latest revision as of 22:36, 4 December 2025

integer spellindex(s : string)
   s  : The abbreviated or full spell name
   Returns: -1 if no such spell, otherwise it returns the spell index
            for that spell.
   Example:
      s := "cu li wo"; /* cure light wounds */
      i := spellindex(s);
---~---~---~---~---~---~---~---~---

integer spellindex(s : string)
   s  : The abbreviated or full spell name
   Returns: -1 if no such spell, otherwise it returns the spell index
            for that spell.
   Example:
      s := "cu li wo"; /* cure light wounds */
      i := spellindex(s);
---~---~---~---~---~---~---~---~---