Aller au contenu

Photo

How to make the Player Character Controlable shout "Obidae O bidu Ah Badach!"?


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

What's the code that makes the Speaker say the sounds of casting spells?

 

I was searching in Lexicon and I found "PlayVoiceChat" (nothing what I'm looking for): http://www.nwnlexico...itle=Voice_chat



#2
WhiZard

WhiZard
  • Members
  • 1 204 messages

PlaySound() works for this.  Use spells.2da to get the string name for the sound under the column "ConjSoundMale" or "ConjSoundFemale".


  • WhiteTiger aime ceci

#3
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

PlaySound() works for this.  Use spells.2da to get the string name for the sound under the column "ConjSoundMale" or "ConjSoundFemale".

 

Perfect. Thank you!



#4
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

Whizard, I have this:

 

=======================================

Animation Conjuring Hands Up:

AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_CONJURE2, 1.0, 3.0));

 

Sound:

PlaySound("vs_chant_evoc_lm"));

=======================================

 

But I also need the visual effect of casting spell hands up... do you know how?

 

Is it ConjHeadVisual: vco_mehedelec01? (<< this don't work with effectvisualeffect)



#5
Thayan

Thayan
  • Members
  • 244 messages

Maybe this function would work for you?

// The action subject will fake casting a spell at lLocation; the conjure and
// cast animations and visuals will occur, nothing else.
// - nSpell
// - lTarget
// - nProjectilePathType: PROJECTILE_PATH_TYPE_*
void ActionCastFakeSpellAtLocation(int nSpell, location lTarget, int nProjectilePathType=PROJECTILE_PATH_TYPE_DEFAULT)

 

It would be just something like (obviously replacing SPELL_FIREBALL with whatever spell has the visuals and casting animation you want) -

AssignCommand(oPC, ActionCastFakeSpellAtLocation(SPELL_FIREBALL, GetLocation(oPC));


  • WhiteTiger aime ceci

#6
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

I'll try to do it and then talk to you



#7
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

It would be just something like (obviously replacing SPELL_FIREBALL with whatever spell has the visuals and casting animation you want) -

AssignCommand(oPC, ActionCastFakeSpellAtLocation(SPELL_FIREBALL, GetLocation(oPC));

 

Works 100% !!! Thank you very much!

 

obs: you missed to insert the final ) in the end of the script XD