Pausing a loop with wait{}

I'm trying to output a list with a pause between each item
Please help

  TextFX_Typewriter (x, 25)
 wait {
  }
}

here's an alternative, which I just thought of now, and I think it's pretty creative... (for me anyways):

<game name="example_game">
  <attr name="example_integer_attribute" type="int">0</attr>
  <attr name="example_stringlist_attribute" type="simplestringlist">one;two;three;four;five</attr>
</game>

<timer name="example_timer">
  <enabled />
  <interval>10</interval>
  <script>
    example_string_variable = StringListItem (game.example_stringlist_attribute, game.example_integer_attribute)
    game.example_integer_attribute = game.example_integer_attribute + 1
    msg (game.example_integer_attribute + ". " + example_string_variable)
    if (game.example_integer_attribute = ListCount (game.example_stringlist_attribute)) {
      DisableTimer (this)
    }
  </script>
</timer>

output/results:

(wait 10 seconds)
1. one
(wait 10 seconds)
2. two
(wait 10 seconds)
3. three
(wait 10 seconds)
4. four
(wait 10 seconds)
5. five
(timer is disabled)

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums