• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

selecting energy resistance

AndrewD2

Well-known member
I've got a racial special setup for selecting an energy type and gaining that type of energy resistance. It pipes the selection into #applyresist[] but I realized that doesn't really work because the energy types aren't the same as the things for energy restiance.

The only idea I've got so far is to setup an if statement that sets a string variable to the proper resistance type depending on what is selected ...

Is there a better way?

Andrew
 
Air, Earth, Wind, Fire, all have BloodEner.? tags of their associated energy type. Try pulling the tag to your racial special, and then set the resistance based on what tag is present.
 
Something like:

Code:
perform field[usrChosen1].chosen.pulltags[BloodEner.?]

if (tagis[BloodEner.Fire] <> 0) then
  #applyresist[xDamRsFire, 10]
elseif BLAHBLAH
  APPLY OTHER
  endif
 
Back
Top