home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Educate / Educate.zip / radf100.zip / FUNCTION.TXT < prev    next >
Text File  |  1995-04-23  |  3KB  |  69 lines

  1. DoVerb <Object #>, <Verb #>
  2.     Checks the !Test level, if a match is found, the !Desc level for
  3.     that !Test is displayed, and the !Code executed
  4.  
  5.     MovePlayer <Destination Object>
  6.     Moves the object PlayerNum to <Destination Object>.
  7.  
  8. WeightCheck(<Object # to Move>, <Object # of New Location>)
  9.     1) add up the 'Weight' flags of the new location.
  10.     2) if the current weight plus the new object is greater than the 'Holds' flag
  11.         of the new location, return 0, otherwise return 1.
  12.  
  13. MoveObject <Object # moved>, <Object # of New Location>
  14.     1) Add the object moved to the Content level of the new location
  15.     2) Change the 'Location' Flag of the object moved
  16.     3) Remove the Object Moved from the old location
  17.     4) Compress the remaining objects in the Content level of the old
  18.         Location, so that there are no gaps.
  19.  
  20. GetFlag( <Object#>, <Flag name>)
  21.     Returns the value of the given flag
  22.  
  23. SetFlag( <Object#>, <Flag Name>, <Value>)
  24.     Sets <Value> into flag <Flag Name> of object <Object#>.
  25.  
  26. ObjectNum( <Object Name> )
  27.     Return the internal number given the object name
  28.  
  29.     NOTE: This only works on unique object names, before the ';'
  30.  
  31. DoIVerb <Object #>
  32.     Checks the !Test level, if a match is found, the !Desc level for
  33.     that !Test is displayed, and the !Code executed
  34.  
  35. FillObjBox
  36.     Clears the Objects box, and then fills it with the objects in the Location flag of
  37.         Object PlayerNum.
  38.  
  39. FillInventoryBox
  40.     Fills the inventory box with the items contained in object PlayerNum
  41.  
  42. FillVerbBox( <Object Number> )
  43.     Fills the Verb box with the verbs associated with the object <Object Number> 
  44.  
  45. AddScore <number>
  46.     Adds <number> to the 'Score' flag of object PlayerNum.
  47.  
  48. IsHolding( <Object Number> )
  49.     Returns 1 if Object is in the player's inventory.
  50.     Returns 0 otherwise
  51.  
  52. IsPresent( <Object number> )
  53.     Returns 1 of Object is in the same location as the player 
  54.     Returns 0 otherwise
  55.  
  56. EndGame
  57.     Turns off all windows, and displays 'use file menu to load, restore or quit'
  58.  
  59. VerbNum(<Object Number>, <Verb Name>)
  60.     Returns the index number of verb <verb name> in object <Object Number>, 
  61.     or 0 if not found.
  62.  
  63. AddFlag <Object Number>, <Flag Name>, <value to add>
  64.     Adds the <value> to the current value of the specified flag
  65.     and saves the result in the flag.
  66.  
  67. InLocation(<Location #>, <Item Number>)
  68.     Returns a 1 if the <Item> is in the specified <Location>, 
  69.     Returns 0 otherwise.