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-nmm6 (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-nmm6 (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-nmm6 (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
Physical Armor is not being counted
Author Message
AmpereJoule
Journeyman
*

Posts: 59
Likes Given: 7
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #11
RE: Physical Armor is not being counted
I think I have none o.o, look:

sphere.ini:
Code:
...
//Events related to all NPCs
//EventsPet=your_event

//Events related to all players
//EventsPlayer=your_event

//Events related to all regions
//EventsRegion=your_event
...
01-16-2013 02:47 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #12
RE: Physical Armor is not being counted
if you AR is 50 and the skeleton doesn't have any elemental damage that means that somewhere in your scripts, there is the dam_god flag attached to damage.( i guess)
01-16-2013 03:41 AM
Find all posts by this user Like Post Quote this message in a reply
AmpereJoule
Journeyman
*

Posts: 59
Likes Given: 7
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #13
RE: Physical Armor is not being counted
Using the Notepad++ I found:
C:\sphere\scripts\add-on\combat\sphere_combat_events.scp (4 hits)
Line 72: argn2 |= dam_god
Line 88: argn2 |= dam_god
Line 184: argn2 |= dam_god
Line 200: argn2 |= dam_god

and here it is "sphere_combat_events.scp":
Code:
...
on=@gethit
if <tag0.hbcs>
    if <tag0.ignore.combat>
    argn2 |= dam_god // <<<<<<<<<<<<<<<<<<<<<<<<<<< LINE 72
    tag.ignore.combat
    elif ((<def.scp.Combat_FormulasUsed> == 1) && <def.scp.Combat_UseResistances>) || (<def.scp.Combat_FormulasUsed> == 3)
    ref1 = <qval (<src.weapon>) ? <src.weapon>:<src>>
    local.realphy = <eval 100 - (<ref1.tag0.DamFire> + <ref1.tag0.DamCold> + <ref1.tag0.DamPoison> + <ref1.tag0.DamEnergy>)>
    local.physical = <muldiv <argn1>,<local.realphy>,100>
    local.physical -= <muldiv <local.physical>,<eval <armor> + <modar>>,100>
    local.fire = <muldiv <argn1>,<ref1.tag0.DamFire>,100>
    local.fire -= <muldiv <local.fire>,<ResFire>,100>
    local.cold = <muldiv <argn1>,<ref1.tag0.DamCold>,100>
    local.cold -= <muldiv <local.cold>,<ResCold>,100>
    local.poison = <muldiv <argn1>,<ref1.tag0.DamPoison>,100>
    local.poison -= <muldiv <local.poison>,<ResPoison>,100>
    local.energy = <muldiv <argn1>,<ref1.tag0.DamEnergy>,100>
    local.energy -= <muldiv <local.energy>,<ResEnergy>,100>
    argn1 = <eval <local.physical> + <local.fire> + <local.cold> + <local.poison> + <local.energy>>
    argn2 |= dam_god // <<<<<<<<<<<<<<<<<<<<<<<<<<< LINE 88
    endif
endif
...
...
on=@gethit
if <tag0.hbcs>
    if <tag0.ignore.combat>
    argn2 |= dam_god // <<<<<<<<<<<<<<<<<<<<<<<<<<< LINE 184
    tag.ignore.combat
    elif ((<def.scp.Combat_FormulasUsed> == 1) && <def.scp.Combat_UseResistances>) || (<def.scp.Combat_FormulasUsed> == 3)
    ref1 = <qval (<src.weapon>) ? <src.weapon>:<src>>
    local.realphy = <eval 100 - (<ref1.tag0.DamFire> + <ref1.tag0.DamCold> + <ref1.tag0.DamPoison> + <ref1.tag0.DamEnergy>)>
    local.physical = <muldiv <argn1>,<local.realphy>,100>
    local.physical -= <muldiv <local.physical>,<eval <armor> + <modar>>,100>
    local.fire = <muldiv <argn1>,<ref1.tag0.DamFire>,100>
    local.fire -= <muldiv <local.fire>,<ResFire>,100>
    local.cold = <muldiv <argn1>,<ref1.tag0.DamCold>,100>
    local.cold -= <muldiv <local.cold>,<ResCold>,100>
    local.poison = <muldiv <argn1>,<ref1.tag0.DamPoison>,100>
    local.poison -= <muldiv <local.poison>,<ResPoison>,100>
    local.energy = <muldiv <argn1>,<ref1.tag0.DamEnergy>,100>
    local.energy -= <muldiv <local.energy>,<ResEnergy>,100>
    argn1 = <eval <local.physical> + <local.fire> + <local.cold> + <local.poison> + <local.energy>>
    argn2 |= dam_god // <<<<<<<<<<<<<<<<<<<<<<<<<<< LINE 200
    endif
endif
...


PS: I also found "dam_god flag" at: "sphere_champion_harrower.scp", "sphere_special_moves_event.scp", "sphere_special_moves_items.scp", "sphere_doom_dun.scp", "sphere_hunger_system.scp", "sphere_typedef_bola.scp", "sphere_spells_necromancy.scp", "sphere_defs.scp".
01-16-2013 07:39 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #14
RE: Physical Armor is not being counted
Since you (and your monsters) do not have the elemental damage events... all of those TAG.DAM* and TAG.Resist* values are ignored. What that leaves you with is the basic built-in combat calculation that uses AR and whatnot (as described here: http://wiki.sphere.torfo.org/index.php/A...alculation )

If you want the elemental damage stuff, then all your players and monsters need those events... also all your armor and weapons (perhaps more generally - all your "equippable" items) may need events as well.

To handle elemental damage and resistance, the SCP has the following values for eventsPet and eventsPlayer:

Code:
//Events related to all NPCs
EventsPet=e_NpcGenericEvent,e_NpcCombatEvent,e_NpcPropertiesEvent

//Events related to all players
EventsPlayer=e_PlayerGenericEvent,e_PlayerCraftingEvent,e_PlayerCombatEvent,e_Pl​ayerPropertiesEvent,e_PlayerTooltipEvent,e_special_moves

...Not all of those events are necessary, but likely e_NpcCombatEvent and e_NpcCombatEvent are.

To handle other related stuff on the "equippable" items, the SCP has TEVENTS=t_iprop on them...
01-16-2013 08:33 AM
Find all posts by this user Like Post Quote this message in a reply
AmpereJoule
Journeyman
*

Posts: 59
Likes Given: 7
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #15
RE: Physical Armor is not being counted
I did that and now I am testing.

I notice that my MaxHits is not my Str, Is it because of these events? Can I change it?
01-16-2013 10:21 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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