home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2002 April / GSSH42002.iso / EDITOREN / DS / gmax / gmaxinst_1-1.exe / gmaxsetup11.cab / scripttools.ms < prev    next >
Text File  |  2002-02-13  |  1KB  |  42 lines

  1. -- Added functions for improved scripter workflow
  2. -- Created:          April 7 2000
  3. -- Last Updated:     April 7 2000
  4. --
  5. -- Author:Frank DeLise
  6. -- Version:3D Studio Max Release 4.0
  7. --
  8. -- -- This script Allows you to add your own functions for help when writting scripts
  9. --***********************************************************************************************
  10. -- MODIFY THIS AT YOUR OWN RISK
  11. --***********************************************************************************************
  12.  
  13. -- Example:  Help "Box" 
  14.  
  15. fn Help What = 
  16. (
  17.     If what == "" then 
  18.     (
  19.         Format "%\n" "You must type in an command you are looking for like" to:Listener
  20.         Format "%\n" "Help \"Box\", which will list all commands with the name Box in it." to:Listener
  21.         Format "%\n" "Help All, will list all commands" to:Listener
  22.     )
  23.     Else if what == all then
  24.     (
  25.         Apropos ""
  26.     )
  27.     Else    
  28.     (
  29.         Try (Apropos (What))
  30.         Catch (Format "%\n" "No Info Found, Example: Help \"Box\"" to:Listener)
  31.     )
  32. )
  33.  
  34. -- Example Show $
  35.  
  36. fn Show What =
  37. (    
  38.     Try (ShowProperties (What))
  39.     Catch (format "%\n" ("No Info Found on " + What as string) to:listener)
  40. )
  41.  
  42.