Crimsonfoxy Posted November 28, 2011 Share Posted November 28, 2011 If I want to apply a continuous effect to an actor, in my case, a custom Bighorner, do I only need to call it once without a duration parameter or constantly? Eg. begin GameMode pms GlowingOneFXShader end OR begin GameMode if ( doOnce == 0 ) pms GlowingOneFXShader set doOnce to 1 endif end It does work without the doOnce but I can't tell if it's reapplying it constantly and wasting resources. Anyone got any experience with this? http://geck.bethsoft.com/index.php/PlayMagicShaderVisuals Link to comment Share on other sites More sharing options...
Jeux Posted November 28, 2011 Share Posted November 28, 2011 How about giving the creature the actor effect GlowingOneGlowSpell? Not sure if this is the right approach, just a suggestion. Link to comment Share on other sites More sharing options...
Crimsonfoxy Posted November 28, 2011 Author Share Posted November 28, 2011 (edited) I did try it before but I had another go and it still didn't work...until I tried to shoot it then it activated the glow. Now if I can get that without it being in battle (especially seeing as this one shouldn't be affected by gunfire). Edited November 29, 2011 by Crimsonfoxy Link to comment Share on other sites More sharing options...
Jeux Posted November 29, 2011 Share Posted November 29, 2011 You might have added it to the unarmed effect drop list for the creature. you gotta do it under the "Actor Effect" list. Check out the GlowingOne creature and script. Link to comment Share on other sites More sharing options...
Crimsonfoxy Posted November 29, 2011 Author Share Posted November 29, 2011 Nope, got it setup exactly like that. Only thing I don't have is the GlowingOne script which just covers it's death. Link to comment Share on other sites More sharing options...
Jeux Posted November 29, 2011 Share Posted November 29, 2011 scn GlowingOneGlowSpellScript Begin ScriptEffectStart pms GlowingOneFXShader End Link to comment Share on other sites More sharing options...
Crimsonfoxy Posted November 29, 2011 Author Share Posted November 29, 2011 Yeah I've seen that, though I don't know how ScriptEffectStart is called (Which seems to be trigged by combat), which leads me back to my original post, if I'm doing it through the GameMode block, does it need to be constant or just done once. Link to comment Share on other sites More sharing options...
Jeux Posted November 29, 2011 Share Posted November 29, 2011 This is just strange. All I can say at this point is to just mimic what you see for the Glowing One creatures....ones that have that spell as an actor effect. There's got to be something that you're doing wrong. Link to comment Share on other sites More sharing options...
dree74 Posted November 29, 2011 Share Posted November 29, 2011 (edited) ScriptEffectStart block is for effect script only. begin GameMode pms GlowingOneFXShader end that might crash the game because you are calling pms function every frame. begin GameMode if ( doOnce == 0 ) pms GlowingOneFXShader set doOnce to 1 endif end this is much better approach than the one above, potential problem with this is that when you load the save file, it will have GlowingOneFXShader off but doOnce is set to 1, so it won't apply the effect any more. Begin OnLoad pms GlowingOneFXShader End Try this one. This will apply the shader once when the npc is loaded. From my experience with GlowingOneFXShader, this needs to be called only once, and the shader effect stays with the NPC. Edited November 29, 2011 by dree74 Link to comment Share on other sites More sharing options...
Crimsonfoxy Posted November 29, 2011 Author Share Posted November 29, 2011 Begin OnLoad pms GlowingOneFXShader End Try this one. This will apply the shader once when the npc is loaded. From my experience with GlowingOneFXShader, this needs to be called only once, and the shader effect stays with the NPC.This works perfectly, exactly what I'm looking for. Still probably think the actor effect is a better method but as I can't figure out what's going wrong this works just as well. =) Cheers guys. Link to comment Share on other sites More sharing options...
Recommended Posts