The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I did some @hit stuff, but sphere is still doing it's own
Author Message
Murmur
Apprentice
*

Posts: 33
Likes Given: 3
Likes Received: 2 in 2 posts
Joined: Feb 2013
Reputation: 0



Post: #2
RE: I did some @hit stuff, but sphere is still doing it's own
#1 - Where are you getting SRC.damage from (I don't see that as a valid object on the WIKI) (maybe you assigned it another value above the code you pasted)?

#2 - assuming SRC.damage has been assigned by you in the code somewhere, you would change line 3 from:
Code:
SRC.damage <eval <localtestdmg>>

to

Code:
SRC.damage <eval <LOCAL.TESTDMG>>

Also a tip for getting help, if you aren't cutting and pasting the entire code (perhaps you did in this instance) it's definitely helpful for us to see the entire picture.

And as far as overriding @HIT, as long as you don't override any variables having to do with guards, criminal, invul areas, you'll be fine, you are only overriding the specific variables, not the entire combat script from what I've seen. Hopefully someone with more knowledge will step in a confirm this, because I'm only 99% sure from my experience so far (which is super limited).

I'm actually at the point of researching this for my @Hit script and looks like SRC.damage is a valid argument, so I stand corrected, no need for #1 on my first reply

I just got on my whiteboard, and broke it into pieces, looks like the first part I'm doing is determining my min and max damage according to my weapon min/max damage, my character's strength and my character's weapon skill. Then once I have those two values, Ill take into account my opponents armor value and parry skill, then perform another calculation.

*you glance to your left to a region you just surveyed... you glimpse a magical being, more shadow than substance, caught midway in transformation... the figure smiles, the corners of his mouth jut upwards slightly on the edges, suddenly stretched to a length not at all human...*
(This post was last modified: 05-08-2017 02:39 PM by Murmur.)
05-08-2017 02:14 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: I did some @hit stuff, but sphere is still doing it's own - Murmur - 05-08-2017 02:14 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)