![]() |
#21
|
||||
|
![]() Quote:
| |||
|
#22
|
|||
|
![]() Skill does increase ATK, but it's not ATK that affects chance to hit.
__________________
Gnawlunzs Phrogphry
Master Angler, Baker, Cadger, Drunk "If you can't eat a frog, then eat two." | ||
|
#23
|
|||
|
![]() So I'm at work Monday and just looking at all this code (I didn't look during the weekend, I was busy playing, duh).
I'm able to decipher bits and pieces of the code but it looks like there are variables that are referenced elsewhere in the code. It's like trying to read a book in Spanish when you only know half the language. Does anyone know how floats work? Specifically these functions float mit_roll = MakeRandomFloat(0, mit_rating); float atk_roll = MakeRandomFloat(0, atk_rating); MakeRandomFloat is some sort of function with the inputs of "0" and "mit_rating" or "atk_rating" which are calculated elsewhere. What does MakeRandomFloat do? THAC0 stands for "To Hit AC 0" correct? | ||
Last edited by Mirana; 02-24-2014 at 09:40 AM..
|
|
#24
|
||||
|
![]() Quote:
MakeRandomFloat(a,b) will return a random value between a and b. MakeRandomFloat(0, 10) will return a random real number between 0 and 10. You are correct on THAC0. | |||
Last edited by imajester; 02-24-2014 at 10:10 AM..
|
|
#25
|
||||
|
![]() Quote:
It's making a roll between 0 and the rating. | |||
|
#26
|
|||
|
![]() THAC0 does stand for to hit armor class 0. It's a D&D term.
__________________
The Ancient Ranger
Awake again. | ||
|
![]() |
|
|