Jump to content

Looping in Papyrus


Elec0

Recommended Posts

I can't find any documentation on looping in Papyrus on the CK wiki, which leads me to believe that looping can't happen at this point. Am I wrong?

Looping

 

In the old system, you could loop by setting up a series of IF statements and have them increment a counter until a certain condition (usually using that counter) was no longer true.

 

In the new system, you can use looping statements (currently While is implemented) inside any events you want. As long as the expression following While is true, the loop will continue running.

 

While counter <= 100 ;do something 100 times.

...

counter += 1 ;Shorthand for "counter = counter + 1"

EndWhile

http://www.creationkit.com/Differences_from_Previous_Scripting#Looping

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...