Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Question on global_retcode
|
Question on global_retcode
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Toy
(206 posts) Bio
|
| Date
| Sat 07 Feb 2004 01:04 AM (UTC) |
| Message
| I was messing around, attempting to get do_tail to work. GOt it in, fixed all problems, the command works fine now... here's the thing: whenever someone uses the "tail" attack, the battle message always shows as "brushes". What I'm looking to do is set it up that as you level higher, your attack will increase. I think I found there it computes the battle damage in this line:
global_retcode = damage( ch, victim, number_range( 1, ch->level ), gsn_tail );
Can someone help me to change this so it works more the way I want it to?
-Toy |
It's always good to know how far you are willing to go to be the best...
Karl Mancine
aka
Toy the Dark Puppet | | Top |
|
| Posted by
| Meerclar
USA (733 posts) Bio
|
| Date
| Reply #1 on Sat 07 Feb 2004 03:44 AM (UTC) Amended on Sat 07 Feb 2004 03:50 AM (UTC) by Meerclar
|
| Message
| Change
global_retcode = damage( ch, victim, number_range( 1, ch->level ), gsn_tail );
to something like
global_retcode = damage( ch, victim, dice( 3, ch->level ), gsn_tail );
The more/larger dice you use the better the damage gets for tail attacks but remember this could do some nasty things to mob balance if you aren't careful. The existing code simply takes a random number between 1 and the level of the character using the tail attack. At higher levels better damage is possible but still quite weak even if maximum damage is scored. Changing to a diced damage formula will give you a higher average damage, higher minimum damages and much higher maximum damages at higher levels. If you wanted to tie in the skill level for damage it should be fairly easy. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | | Top |
|
| Posted by
| Toy
(206 posts) Bio
|
| Date
| Reply #2 on Sat 07 Feb 2004 08:14 AM (UTC) |
| Message
| Well, I changed the number_range to dice and recomplied attempting to try it out. The damage ain't too great, but for a side attack for a mob, it'll work. Couldn't figure out why the damage was weak when I tried it out, then I realized Puff the Fractal Dragon is a tough mob. ;p Once I tried a weaker one, my tail damage starting maiming and devistating.. right where I want it. :)
Thanks for the help one that one Meerclar.
-Toy |
It's always good to know how far you are willing to go to be the best...
Karl Mancine
aka
Toy the Dark Puppet | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
14,290 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top