Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

visual goodies to objects

Page: 1 of 1
 stingerhs
12-11-2004, 8:17 AM
#1
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, 9:33 AM
#2
I like your thinking stingerhs. I'm going to see what I can do.
 tk102
12-11-2004, 10:08 AM
#3
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, 5:00 PM
#4
oh well, thanks for trying tk. :D

out of curiousity, what methods did you try??
 tk102
12-12-2004, 6:26 PM
#5
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...
Page: 1 of 1