home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 2000 January / CD-Gamer_2000-01_04_cd.bin / games / phoenix.exe / Scripts / alias / Ifs.txt < prev    next >
Text File  |  1999-03-10  |  2KB  |  89 lines

  1. @IF_SQUADGONE::(squad{Squad name},label{Label to jump to when true})
  2. Label(&1)
  3. If(s_SquadGone["$1"]): Goto($2)
  4. Goto(&1)
  5. ENDALIAS
  6.  
  7. // to use:
  8. // @IF_SQUADGONE{Enemy1|Warpout}
  9.  
  10.  
  11. @IF_HASENERGY::(ship{Ship name},int{Wait until ship has at least this much energy},label{Label to jump to when true})
  12. Label(&1)
  13. If(s_HasEnergy["$1",$2]): Goto($3)
  14. Goto(&1)
  15. ENDALIAS
  16.  
  17. // to use:
  18. // @IF_HASENERGY{Enemy1|200|KillHim}
  19.  
  20.  
  21. @IF_LOWENERGY::(ship{Ship name},int{Wait until ship has less than this much energy},label{Label to jump to when true})
  22. Label(&1)
  23. If(s_LowEnergy["$1",$2]): Goto($3)
  24. Goto(&1)
  25. ENDALIAS
  26.  
  27. // to use:
  28. // @IF_LOWENERGY{Alpha|100|Warpout}
  29.  
  30.  
  31. @IF_SHIPGONE::(ship{Check if this ship is alive},label{Label to jump to when true})
  32. Label(&1)
  33. If(s_ShipGone["$1"]): Goto($2)
  34. Goto(&1)
  35. ENDALIAS
  36.  
  37. // to use:
  38. // @IF_SHIPGONE{Enemy1|Warpout}
  39.  
  40. @WAIT_SHIPGONE::(ship{Check if this ship is alive})
  41. Label(&1)
  42. If(s_ShipGone["$1"]): Goto(&2)
  43. Goto(&1)
  44. Label(&2)
  45. ENDALIAS
  46.  
  47. // to use:
  48. // @IF_SHIPGONE{Enemy1|Warpout}
  49.  
  50.  
  51.  
  52. @IF_SHIPDISABLED::(ship{Check if this ship is disabled},label{Label to jump to when true})
  53. Label(&1)
  54. If(s_ShipDisabled["$1"]): Goto($2)
  55. Goto(&1)
  56. ENDALIAS
  57.  
  58. // to use:
  59. // @IF_SHIPDISABLED{Frank|Warpout}
  60.  
  61.  
  62. @IF_CLOSETOGETHER::(ship{Ship 1},ship{Ship 2},int{Wait until ships are at least this close},label{Label to jump to when true})
  63. Label(&1)
  64. If(s_CloseTogether["$1","$2",$3]): Goto($4)
  65. Goto(&1)
  66. ENDALIAS
  67.  
  68. // to use:
  69. // @IF_CLOSETOGETHER{Enemy1|TargetNull1|Value|Warpout}
  70.  
  71.  
  72.  
  73. @IF_FARAPART::(ship{Ship 1},ship{Ship 2},int{Wait until ships are at least this far apart},label{Label to jump to when true})
  74. Label(&1)
  75. If(s_FarApart["$1","$2",$3]): Goto($4)
  76. Goto(&1)
  77. ENDALIAS
  78.  
  79. // to use:
  80. // @IF_FARAPART{Enemy1|TargetNull1|Value|Warpout}
  81.  
  82.  
  83. @WAIT::(int{Time to wait for})
  84. Timer($1)
  85. Label(&1)
  86. If(Timer): Goto(&1)
  87. ENDALIAS
  88.  
  89.