home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / d / d-linux.zip / dm-dist / doc / combat.doc < prev    next >
Text File  |  1991-03-01  |  3KB  |  101 lines

  1. /* ************************************************************************
  2. *  Copyright (C) 1990, 1991 - see 'license.doc' for complete information. *
  3. ************************************************************************* */
  4.  
  5. HIT:
  6.  
  7. (weapon wielded)
  8.  
  9. hit_roll = tohit(weapon)D6 + (str/2) - (weight(weapon)-(str/10))
  10.                                                   /*make hit roll     */
  11. victim  |
  12.   AC    |  9  8  7  6  5  4  3  2  1  0 -1 -2 -3 -4 -5 -6 -7 -8 -9
  13. hit_roll| 
  14.  needed | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  15.  
  16. if hit : dam_roll = todam(weapon)D6 + (2Dstr/2)   /*damage on victim  */
  17.  
  18. ------------------------------------------------------------------------
  19. SPELL:
  20.  
  21. check mana && success(spell)>0%
  22.   
  23.   success_roll = 2*levelDsuccess(spell)           /*make success roll */ 
  24.   
  25.   victim_roll = 1D20                              /*make saving roll  */
  26.    
  27.   if ((success_roll > 100) && (victim_roll<victim_saving)) then
  28.     
  29.     dam_roll = todam(spell) + (2Dint)             /*damage on victim  */ 
  30.  
  31. ------------------------------------------------------------------------
  32. WAND
  33.  
  34. check charges
  35.  
  36.   if (magic-u/cleric): 
  37.  
  38.     success_roll = 2*levelDsuccess(spell)         /*make success roll */
  39.  
  40.   else
  41.  
  42.     success_roll = levelDsuccess(spell)           /*make success roll */
  43.  
  44.   if ((success_roll > 100) && (victim_roll<victim_saving)) then
  45.  
  46.     dam_roll=todam(spell) + (2D20) (if dam_spell) /*damage on victim  */
  47.  
  48. ------------------------------------------------------------------------
  49. STAFF
  50.  
  51. check charges
  52.  
  53.   if (magic-u/cleric): simple non-char effect 
  54.  
  55.   else: none
  56.  
  57. ------------------------------------------------------------------------
  58. FIRE
  59.  
  60. (fireweapon wielded,missiles hold)
  61.  
  62. hit_roll = tohit(weapon) + tohit(missile) + 1d20 + (dex/2) - distance
  63.                                                   /*make hit roll    */
  64. victim  |
  65.   AC    |  9  8  7  6  5  4  3  2  1  0 -1 -2 -3 -4 -5 -6 -7 -8 -9
  66. hit_roll|
  67.  needed | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  68.  
  69. if hit : dam_roll = todam(missile) + todam(waepon) + (2Ddex)
  70.                                                   /*damage on victim  */ 
  71.  
  72. * Distance : 1-5
  73. ------------------------------------------------------------------------
  74. SCROLL
  75.  
  76. (croll hold)
  77.  
  78. check read magic spell
  79.  
  80.   simple non violent action
  81.  
  82. ------------------------------------------------------------------------
  83. MAKE A CHAR:
  84.  
  85. 1) abiliti_roll = 3D6
  86. 2) point_roll   = 2d6 * 10
  87. 3) get char_class = [magic-user,cleric,thief,warrior]
  88.    set prime_reqi = [   int    , wis  , dex ,  str  ]
  89. 4) all abilities other than dex and prime_requi 
  90.    counts downto 9 and prime counts up
  91. 5) roll age (15-25)
  92. 6) get sex
  93. 7) inteligence check :
  94.    3-4  : cannot read or write, only speaks short words
  95.    5-6  : cannot read or write
  96.    7-11 : normal
  97.    12-16: +1 tounge
  98.    17-18: +2 tounge
  99.    (theives spek all tounges)
  100. 8) get standard class equipment
  101.