Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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 |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
#2 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I'm not sure I follow
|
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Something like:
Code:
perform field[usrChosen1].chosen.pulltags[BloodEner.?] if (tagis[BloodEner.Fire] <> 0) then #applyresist[xDamRsFire, 10] elseif BLAHBLAH APPLY OTHER endif |
#4 |
|
|