home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / global / objectives.scr < prev    next >
Encoding:
Text File  |  2002-10-21  |  1.2 KB  |  21 lines

  1. //*********************************************************************************************************************************************
  2. //*** add / modify an objective in the list
  3. //*** this will replace an objective if you use a number that already exists
  4. //*** if any field entered contains a 0, it's left at what it was
  5. //*** syntax --------------------------------
  6. //*** add_objectives <objective number> <status|1-don't draw, 2-in progress, 3-completed> [objective text] [associated location in map|vector]
  7. //*********************************************************************************************************************************************
  8. add_objectives local.index local.status local.objective local.location:
  9.     local.objective = waitthread global/string_format.scr::str_format local.objective 41
  10.     addobjective local.index local.status local.objective local.location
  11. end
  12.  
  13. //*************************************************
  14. //*** set the current objective
  15. //*** syntax ---------------------------------
  16. //*** current_objectives <number of objective>
  17. //*************************************************
  18. current_objectives local.index:
  19.     setcurrentobjective local.index
  20. end
  21.