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
Resist. Elemental
Author Message
Edel[EdC]
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #6
RE: Resist. Elemental
Ok, if I understand correctly, the Elemental resist works like the AR system. If I have a 20 fire resist on my tunic, the fire resistance will only work if hit on the chest. If my tunic is half worn, only 50% of the fire resist will be taken into account.

So I imagine you would have to do something like that for all your wearable items with resists :

Code:
On=@equip
tag0.HowMuchResfireDidIgive=<f_formula_how_much_res_with_worn_item> //We keep track at how much resfire the item give to the player.
src.resfire +=<eval (<tag.HowMuchResfireDidIgive>)>  //We give the player the resfire.

On=@Damage
cont.resfire -=<eval (<tag.HowMuchResfireDidIgive>)> //We take back the resfire we give to the player
tag0.HowMuchResfireDidIgive=<f_formula_how_much_res_with_worn_item> //We calculate how much the item will give now that it has been damaged.
src.resfire +=<eval (<tag.HowMuchResfireDidIgive>)>

[function f_formula_how_much_res_with_worn_item]
return <muldiv <resfire>,<more1H>,<more1L>>

But I could be wrong...
07-05-2012 06:36 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Resist. Elemental - victorstelzer - 07-04-2012, 11:30 AM
RE: Resist. Elemental - Gil Amarth - 07-04-2012, 08:07 PM
RE: Resist. Elemental - Anarch Cassius - 07-05-2012, 04:54 AM
RE: Resist. Elemental - Edel[EdC] - 07-05-2012, 05:30 AM
RE: Resist. Elemental - Anarch Cassius - 07-05-2012, 06:04 AM
RE: Resist. Elemental - Edel[EdC] - 07-05-2012 06:36 AM
RE: Resist. Elemental - Anarch Cassius - 07-05-2012, 06:52 AM

Forum Jump:


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