--- Jason Gauthier <[EMAIL PROTECTED]> wrote:
> I was just going over my advance_level function, and took a look at con_app.
>
> The struct looks like this:
>
> struct con_app_type
> {
> sh_int hitp;
> sh_int shock;
> };
>
> Can anyone offer any insight as to what this was planned for?
>
If I were to hazard a guess I'd say it was to be used for the "System Shock"
roll. If memory serves, D&D had a rule that if you lost 50% or more of your
total hp in a single round you had to make a sucessful system shock roll, or
you would die or go into a coma or something. Since in the con_app table the
shock value maxes out at 99 I'd guess that the shock value was going to be used
for something like..
int check_system_shock(ch)
{
return (number_range(1, 100) <= con_app[get_curr_stat(ch,STAT_CON)].shock )
}
And then in the damage function you could do something like....
/*
* Hurt the victim.
* Inform the victim of his new state.
*/
if((dam >= (victim->max_hit/2)) && !check_system_shock(victim))
{
/* Stun, kill, or otherwise "shock" the victim */
}
else
{
/* Do damage normally. */
}
I personally don't know how much your players would be fond of this feature
though...
~Kender
=====
-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GCS/L/C/O d-(+) s++:+ a-- C+++$>++++ UBLS++++$
P+++(--)$ L++>+++ E--- W+>++$ N !o K? w(--) !O
M- !V PS+ PE(++) Y+ PGP->+ t- 5 X+() R(+) tv+@
b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++
------END GEEK CODE BLOCK------
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/