vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   How is attack damage calculated? (https://vborg.vbsupport.ru/showthread.php?t=90844)

RMS 06-22-2005 09:54 PM

How is attack damage calculated?
 
I was hoping someone would be able to clear this up for me.

How is attack damage calculated (exactly or roughly)?
Also, what determines whether the attacker will hit or not? Is it based solely on speed and evasion, or does it also have something to do with defense or maybe items that are equipped? Through some testing, I'm inclined to believe that it actually isn't only speed and evasion.

Basically what I'm asking is how all of the stats actually influence the outcome of a battle. Does anyone know?

Revan 06-23-2005 08:40 AM

Yup, definetely need to add this to the Admin Manual (God that manual is a mess XD).

It's too damn much to type out, I suggest you take a look at battleupdate.php to find all calculations. The variable names are descriptive enough for them to make sense.

RMS 06-23-2005 05:23 PM

Quote:

Originally Posted by Revan
Yup, definetely need to add this to the Admin Manual (God that manual is a mess XD).

It's too damn much to type out, I suggest you take a look at battleupdate.php to find all calculations. The variable names are descriptive enough for them to make sense.

Heh, hmm this is going to be painful.
There's a severe lack of comments and I don't even understand PHP.

At least I now know where to look. Thanks :)


All times are GMT. The time now is 10:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01346 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete