Jump to content

Home

visual goodies to objects


stingerhs

Recommended Posts

This was the final .nss file I tried using, attached to my VFX armband's dialog

void main() {
int nEffectNumber;
object oPC=GetFirstPC();
object oItem =GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON,oPC);
string cmMessage;
if (!(GetIsObjectValid(oItem))) {
 cmMessage = GetName(OBJECT_SELF) + "-" + "Right weapon not valid";
 SendMessageToPC(oPC, cmMessage);
 oItem =GetItemInSlot(INVENTORY_SLOT_LEFTWEAPON,oPC);
  if (!(GetIsObjectValid(oItem))) {
    cmMessage = GetName(OBJECT_SELF) + "-" + "Left weapon not valid";
    SendMessageToPC(oPC, cmMessage);
    return;  
  }
  else {
    cmMessage = GetName(OBJECT_SELF) + "-" + "Left weapon is valid";
    SendMessageToPC(oPC, cmMessage);
  } 
} 
else {
 cmMessage = GetName(OBJECT_SELF) + "-" + "Right weapon is valid";
 SendMessageToPC(oPC, cmMessage);
} 

effect eVFX;
for (nEffectNumber=1; nEffectNumber<7000; nEffectNumber++) {
   eVFX=EffectVisualEffect(nEffectNumber);  
   if (GetIsEffectValid(eVFX)) {
     cmMessage = GetName(OBJECT_SELF) + "-" + "Attempting to apply " + IntToString(nEffectNumber);
     SendMessageToPC(oPC, cmMessage);
     ApplyEffectToObject(DURATION_TYPE_PERMANENT, eVFX, oItem);
   }
}
}

The debug messages showed up but no effects...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...