PDA

View Full Version : visual goodies to objects


stingerhs
12-11-2004, 09:17 AM
let me be more concise:

is it possible to have a sword have one of the visual effects applied to the blade part of the sword, and have it activated and deactivated like a lightsaber???

tk102
12-11-2004, 10:33 AM
I like your thinking stingerhs. I'm going to see what I can do.

tk102
12-11-2004, 11:08 AM
I tried

Flamebumpout (2062) : no effect
Flameimpact(1039) : no effect
ShieldBlue1 (2040) : no effect

:(

Too bad, that would've been slick.

stingerhs
12-12-2004, 06:00 PM
oh well, thanks for trying tk. :D

out of curiousity, what methods did you try??

tk102
12-12-2004, 07:26 PM
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...