
valere73
France
Asked
— Edited
Hi, after watching this video on Youtube, i writed a little script for translate the emotion in french :
$retVal=" " $retVal= $EmotionDescription if ($EmotionDescription="Happiness") $retVal="eureu" endif if ($EmotionDescription="Sadness") $retVal="Triste" endif if ($EmotionDescription="Surprise") $retVal="Surpri" endif if ($EmotionDescription="Anger") $retVal= "En Colère" endif if ($EmotionDescription="Neutral") $retVal="sans zexpression" endif if ($EmotionDescription="Disgust") $retVal="Dégouté" endif if ($EmotionDescription="Fear") $retVal="Effrayé" endif SayEZB(("iL ME SEMBLE QUE VOUS zaiTe" + $retVal))
Valere.
Valere73,
Do you need help ?
1) to help readability, use [ code ] [ /code ] tags.
2) ARC > Edit Script > use (Alt+F) to format code improves readability.
This is where a switch or case statement would be useful. Not saying it is needed, but would just be useful in the script language.
I agree.
if you have zillions strings to match you can be creative:
Great ! thanks I understand the code but it's too high level for me stress