Here's the code for the feat that toggles the automatic Manyshot:
int bUseMS = GetLocalInt(OBJECT_SELF, "MS");
if (bUseMS == 1)
{
bUseMS = 0;
SpeakString("Manyshot Off", TALKVOLUME_TALK);
}
else
{
bUseMS = 1;
SpeakString("Manyshot On", TALKVOLUME_TALK);
}
SetLocalInt(OBJECT_SELF, "MS", bUseMS);
Here's the relevant parts for what's run at the end of the combat round:
object oTarget = GetLocalObject(OBJECT_SELF, "oTarget");
void ForceManyShot()
{
if (GetWeaponRanged(oWeapon))
ActionUseFeat(FEAT_MANYSHOT, oTarget);
}
int bUseMS = GetLocalInt(OBJECT_SELF, "MS");
if (bUseMS == 1)
{
ForceManyShot();
}
Edit: After further testing I've found it still works fine in SoZ so my main suspicion now is that MotB breaks it somehow but I've no clue why or what to try next.
Modifié par manageri, 22 décembre 2011 - 05:10 .





Retour en haut






