Repeating a scripted presentation

All about writing scripts for Celestia in Lua and the .cel system
Topic author
johngie
Posts: 2
Joined: 14.05.2007
With us: 17 years 6 months
Location: Mold, N. Wales UK

Repeating a scripted presentation

Post #1by johngie » 04.06.2007, 10:57

I am very new indeed to this so I hope this is not a stupid question! (I have searched everywhere I can think of).

How can a script be made to repeat so that, when it's finished, it repeats from the beginning.

Cheers

John

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #2by selden » 04.06.2007, 11:35

.CEL scripts have no looping structures of any kind. They play once through and that's it.

.CELX scripts are written in Lua which is a full featured programming language with all the types of looping structures that you might want.

.CELX scripts can incorporate .CEL scripts. I don't recall the details, though. A Forum search should find discussions of this.
Selden


Return to “Scripting”