cooldamien Posted May 14, 2007 Share Posted May 14, 2007 I have cut scene I like change for my End of Game Expansion Pack. I Like a dark jedi let long stream of force and kit her minion making him cry out in pain follow ground but still be alive. Can some give me the code or tell me how to do this in the dialog editor thanks. Edit: I found this script but it does nothing in my cut scene. I tired it in the reply and entry I call the script LT and place in it the script1 slot in DlG edit. Help please void main() { ActionPauseConversation(); object oPC=GetPCSpeaker(); effect eDamage= EffectDamage(20, DAMAGE_TYPE_DARK_SIDE, DAMAGE_POWER_PLUS_FIVE); AssignCommand(oPC, ActionCastFakeSpellAtObject(FORCE_POWER_LIGHTNING, OBJECT_SELF)); ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_PRO_LIGHTNING_L), OBJECT_SELF); ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, OBJECT_SELF); ActionResumeConversation(); } Link to comment Share on other sites More sharing options...
glovemaster Posted May 15, 2007 Share Posted May 15, 2007 I think it is because you have no delays and therefore the conversation is paused and not even a second later the conversation resumes. DelayCommand([DELAY], ActionResumeConversation()); replace [DELAY] with the number of seconds you want to pause the conversation for. Also your script is a bit crammed, i would set each part a value, like: void main() { ActionPauseConversation(); object oPC = GetPCSpeaker(); effect eDamage= EffectDamage(20, DAMAGE_TYPE_DARK_SIDE, DAMAGE_POWER_PLUS_FIVE); effect eLightning = EffectVisualEffect(VFX_PRO_LIGHTNING_L, [color=red][CASTER][/color], [color=red][NODE][/color]); ApplyEffectToObject(DURATION_TYPE_INSTANT, eLightning, OBJECT_SELF); ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, OBJECT_SELF); DelayCommand([color=red][DELAY][/color], ActionResumeConversation()); } Here you did not set the lightning effect properly it requires a [caster], OBJECT_SELF or oPC and a [node], NODE_BODY_HAND_LEFT or NODE_BODY_HAND_RIGHT, NODE_BODY_HEAD. Link to comment Share on other sites More sharing options...
stoffe Posted May 15, 2007 Share Posted May 15, 2007 effect eLightning = EffectVisualEffect(VFX_PRO_LIGHTNING_L, [CASTER], [NODE]); Here you did not set the lightning effect properly it requires a [caster], OBJECT_SELF or oPC and a [node], NODE_BODY_HAND_LEFT or NODE_BODY_HAND_RIGHT, NODE_BODY_HEAD. No, those are not valid parameters for a Visual Effect constructor. You are thinking about a beam effect, while the above line is the lightning "shell" that covers the body of the target when they are struck by the lightning. That said, the script does not contain any beam effect (created using the EffectBeam() constructor) which is why there is no visible lightning bolt. Further the damage and "electrocuted" effects are applied to the object running the script, i.e. the person that owns the conversation. If this is correct there need to be another NPC defined who is shooting the lightning. Link to comment Share on other sites More sharing options...
cooldamien Posted May 15, 2007 Author Share Posted May 15, 2007 Guy thank you but Stoffe has solved mt problem in a PM. Thay you guys for you and again thank you Stoffe. Link to comment Share on other sites More sharing options...
glovemaster Posted May 15, 2007 Share Posted May 15, 2007 -.- i knew i would get summat wrong... lol Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.