- Nov 20, 2014
- Reaction score
- First Language
- Primarily Uses
Exactly!I'm pretty sure you can do this with action sequences. It'd require a little bit of work using if/than/else statements in each skill that has a voice.
But how it would work is you'd check to see the actor user ID of the skill and then apply the sound file by the actor. Something like:
IF Actor = 1
THAN Play attacksound.wav
IF Actor = 2
THAN Play attacksound2.wav
ELSE Play attacksound3.wav
This NOT the code you would use, its just pseudo code to get the general idea. But you'd have to check for each and every actor you have and then assign a sound file for each one. Then do this in each skill. I don't know if we can use case statements.. that'd be much easier than if/than/else.. and much cleaner looking.
I'm actually interested to see how it would work myself. I'll be working on it. but I can't promise anything till this weekend. Thanks for bringing it up voices with actions, its a feature I've been wanting to make for a project and totally forgot about.
Thanks to you.
But yes it's why i'm here: the code you are showing to me, i have no idea what it mean.
this kind of code, you put it in the skill, right?