function show_hologramm_txt() //für das Zeigen des Hologramm Textes
{
var i, j = 0, cursor_pos = 0; //2 lokale variablen
var face_per;
var lines = 0, clip_lines = 0, trunc_lines = 0;
if(hologramm == 1)
{
text_pan.pos_x = screen_size.x - bmap_width(text_pan_back)*screen_size.x/1680;
text_pan.scale_x = screen_size.x/1680;
text_pan.scale_y = screen_size.y/1050;
while(text_pan.alpha < 100)
{
text_pan.alpha += 5 *time_step;
wait(1);
}
holograph_1_txt.pos_x = text_pan.pos_x + 20;
holograph_1_txt.pos_y = text_pan.pos_y + 20;
face_ent.flags2 |= SHOW;
str_cpy(text_str, holograph_1_1);
str_cpy(temp_str, text_str);
i = str_len(text_str);
str_trunc(text_str, i);
set(holograph_1_txt, SHOW);
while(i > 0)
{
if(random(10) > 5) face_per += 50 * time_step;
else face_per = 0;
ent_animate(face_ent, "talk", face_per, ANM_CYCLE);
str_cpy(text_str, temp_str);
str_trunc(text_str, i);
cursor_pos++;
i--;
// if((str_stri(temp2_str, n_str) == cursor_pos))
// {
// printf("Number: %3.0f", (double)cursor_pos);
// lines++;
// clip_lines = str_stri(temp2_str, n_str);
// printf("Lines: %3.0f", (double)lines);
// cursor_pos = 0;
// }
str_cpy(temp2_str, temp_str);
str_clip(temp2_str, clip_lines)
if(str_stri(temp2_str, n_str) > 0)
{
lines++;
printf("lines : %3.0f", (double)
clip_lines = str_stri(temp2_str, n_str)+2;
}
str_cpy (temp2_str, temp_str);
if(lines >= 3)
{
trunc_lines = str_stri(temp2_str, n_str);
}
wait(-0.05);
}
.......