| 1 |
function scr_portrait_counterscr_portrait_counterfunction scr_portrait_counter()
{
if (can_talk == true && characters < message_length && portrait[message_current] != -4)
{
if (can_talk_no_loop == false)
{
portrait_counter = 1;
can_talk_no_loop = true;
}
if (portrait_counter >= 1)
{
portrait_counter -= 1;
portrait_image_index += 1;
if (portrait_image_index > portrait_image_index_max)
portrait_image_index = 0;
}
portrait_counter += (portrait_image_speed * hold);
}
else
{
portrait_counter = 0;
portrait_image_index = 0;
can_talk_no_loop = false;
}
} () |
| 2 |
{ |
| 3 |
if (can_talk == true && characters < message_length && portrait[message_current] != -4) |
| 4 |
{ |
| 5 |
if (can_talk_no_loop == false) |
| 6 |
{ |
| 7 |
portrait_counter = 1; |
| 8 |
can_talk_no_loop = true; |
| 9 |
} |
| 10 |
if (portrait_counter >= 1) |
| 11 |
{ |
| 12 |
portrait_counter -= 1; |
| 13 |
portrait_image_index += 1; |
| 14 |
if (portrait_image_index > portrait_image_index_max) |
| 15 |
portrait_image_index = 0; |
| 16 |
} |
| 17 |
portrait_counter += (portrait_image_speed * hold); |
| 18 |
} |
| 19 |
else |
| 20 |
{ |
| 21 |
portrait_counter = 0; |
| 22 |
portrait_image_index = 0; |
| 23 |
can_talk_no_loop = false; |
| 24 |
} |
| 25 |
} |