I'm not sure if the best way to accomplish this would be putting the code on an object that would sit in the PC's inventory or if there's a better way.
Here's the non-functioning code I've been playing with.
void main()
{
object oPC = GetOwnedCharacter()
effect eBlast = EffectNWN2SpecialEffectFile("fx_spell_hellfire_blast");
effect eShield = EffectNWN2SpecialEffectFile("fx_spell_hellfire_shield");
if (GetActionMode(oPC,ACTION_MODE_HELLFIRE_BLAST)==TRUE)
{ApplyEffectToObject(DURATION_TYPE_PERMANENT, eBlast, oPC);}
if (GetActionMode(oPC,ACTION_MODE_HELLFIRE_SHIELD)==TRUE)
{ApplyEffectToObject(DURATION_TYPE_PERMANENT, eShield, oPC);}
if (GetActionMode(oPC,ACTION_MODE_HELLFIRE_BLAST)==FALSE)
{RemoveSEFFromObject(oPC,"fx_spell_hellfire_blast");}
if (GetActionMode(oPC,ACTION_MODE_HELLFIRE_SHIELD)==FALSE)
{RemoveSEFFromObject(oPC,"fx_spell_hellfire_shield");}
}
Any advice on how I'd go about accomplishing this on a PW?
Modifié par DanEzra633, 04 octobre 2010 - 05:19 .





Retour en haut






