DannJ wrote...
The first column in most 2DAs seems to be for viewing purposes only. You might have to fill in the correct string refs to get it to work. Also keep in mind that there are two feats in question: darkvision and low-light vision. Although since they use the same combat mode button (no creature has both feats), they might both be covered by the same 2DA entry.
Possibilities are:
1493 (DarkVision)
1962 (DarkVision)
5493 (DarkVision)
6331 (Ultravision)
13563 (DarkVision)
58580 (Ultravision)
111527 (Low Light Vision)
112017 (Low Light Vision)
If, on the other hand, the first column in this 2DA actually *does* do something game-wise, then the name of the text in the CombatMode column might not be 'NightVision'. It could be 'DarkVision', 'LowLightVision', 'UltraVision', or something else entirely. I may have got lucky with the tracking entry, since 'Tracking' was the most obvious choice and seemed to work first-time.
Hi DannJ,
I was working on the information I found in this post:
http://social.biowar...4/index/5376640Check out the fourth post down by Pain. (Actually, I wil copy and paste Pain's info further below.)
Also, I can confirm that "Nightvision" does work when debug tested with the GetActionMode. It's just the SetActionMode part that I cannot get to work.
Lance.
QUOTE:
This returns a string describing mode
/**
* Description
* @author
* @param
* @see
* @return
*/
string CSLTargetActionModeToString( object oTarget )
{
string sMessage = "";
if ( GetActionMode(oTarget, 0) ) { sMessage += "Detect, "; } // Known
if ( GetActionMode(oTarget, 1) ) { sMessage += "Stealth, "; } // Known
if ( GetActionMode(oTarget, 2) ) { sMessage += "Parry, "; } // Known
if ( GetActionMode(oTarget, 3) ) { sMessage += "Power Attack, "; } // Known
if ( GetActionMode(oTarget, 4) ) { sMessage += "Improved Power Attack, "; } // Known
if ( GetActionMode(oTarget, 5) ) { sMessage += "Counter Spell, "; } // Known
if ( GetActionMode(oTarget, 6) ) { sMessage += "Flurry of Blows, "; } // Known
if ( GetActionMode(oTarget, 7) ) { sMessage += "Rapid Shot, "; } // Known
if ( GetActionMode(oTarget, 8) ) { sMessage += "Combat Expertise, "; } // Known
if ( GetActionMode(oTarget, 9) ) { sMessage += "Improved Combat Expertise, "; } // Known
if ( GetActionMode(oTarget, 10) ) { sMessage += "Defensive Casting, "; } // Known
if ( GetActionMode(oTarget, 11) ) { sMessage += "Dirty Fighting, "; } // Known
if ( GetActionMode(oTarget, 12) ) { sMessage += "Defensive Stance, "; } // need to verify
if ( GetActionMode(oTarget, 13) ) { sMessage += "Taunt, "; } // need to verify
if ( GetActionMode(oTarget, 14) ) { sMessage += "Tracking, "; } // Known
if ( GetActionMode(oTarget, 15) ) { sMessage += "Inspire Courage, "; } // need to verify
if ( GetActionMode(oTarget, 16) ) { sMessage += "Inspire Competance, "; } // need to verify
if ( GetActionMode(oTarget, 17) ) { sMessage += "Inspire Defense, "; } // need to verify
if ( GetActionMode(oTarget, 18) ) { sMessage += "Regeneration, "; } // need to verify
if ( GetActionMode(oTarget, 19) ) { sMessage += "Tougness, "; } // need to verify
if ( GetActionMode(oTarget, 20) ) { sMessage += "Slowing, "; } // need to verify
if ( GetActionMode(oTarget, 21) ) { sMessage += "Jarring, "; } // need to verify
if ( GetActionMode(oTarget, 22) ) { sMessage += "MISSING 22, "; } // not even a guess
if ( GetActionMode(oTarget, 23) ) { sMessage += "Rescue, "; } // need to verify
if ( GetActionMode(oTarget, 24) ) { sMessage += "NightVision, "; } // need to verify
if ( GetActionMode(oTarget, 25) ) { sMessage += "Hellfire Blast, "; } // Known
if ( GetActionMode(oTarget, 26) ) { sMessage += "Hellfire Shield, "; } // Known
if ( GetActionMode(oTarget, 27) ) { sMessage += "Swimming, "; } // This i am trying to add
if ( GetActionMode(oTarget, 28) ) { sMessage += "Levitating, "; } // This i am trying to add
if ( GetActionMode(oTarget, 29) ) { sMessage += "Flying, "; } // This i am trying to add
if ( GetActionMode(oTarget, 30) ) { sMessage += "MISSING 30, "; }
if ( GetActionMode(oTarget, 31) ) { sMessage += "MISSING 31, "; }
if ( sMessage != "" )
{
return GetStringLeft(sMessage, GetStringLength(sMessage)-2);
}
return "";
}
Modifié par Lance Botelle, 11 février 2013 - 10:39 .