Project 1999

Go Back   Project 1999 > Blue Community > Blue Server Chat

Closed Thread
 
Thread Tools Display Modes
  #21  
Old 02-22-2014, 10:51 AM
imajester imajester is offline
Orc


Join Date: May 2010
Posts: 31
Default

Quote:
Originally Posted by koros [You must be logged in to view images. Log in or Register.]
ATK from strength and from +atk effects has zero bearing on chance to hit.
I'll have to find the code snipit, but I thought the displayed ATK value in your inventory had weapon skill as one of the components. Then again, I could be horribly wrong, would not be the first or last time.
  #22  
Old 02-22-2014, 11:58 AM
myriverse myriverse is offline
Planar Protector

myriverse's Avatar

Join Date: Jan 2013
Location: Swamp of N.O. Hope
Posts: 2,470
Default

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  
Old 02-24-2014, 09:36 AM
Mirana Mirana is offline
Kobold


Join Date: Nov 2010
Posts: 171
Default

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  
Old 02-24-2014, 10:08 AM
imajester imajester is offline
Orc


Join Date: May 2010
Posts: 31
Default

Quote:
Originally Posted by Mirana [You must be logged in to view images. Log in or Register.]
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?
An 'int' is a Whole Number where a float is more like a Real Number, meaning a float has a fractional component to it. i.e. 3.14159 would be represented by a float, not an int.

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  
Old 02-24-2014, 10:38 AM
koros koros is offline
Planar Protector


Join Date: Mar 2011
Posts: 1,127
Default

Quote:
Originally Posted by Mirana [You must be logged in to view images. Log in or Register.]
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?
Float means floating point, i.e. it can handle any number of decimal places but takes more storage/computational time.

It's making a roll between 0 and the rating.
  #26  
Old 02-24-2014, 11:32 AM
fadetree fadetree is offline
Planar Protector


Join Date: Mar 2012
Posts: 1,958
Default

THAC0 does stand for to hit armor class 0. It's a D&D term.
__________________
The Ancient Ranger
Awake again.
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:27 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.