how do i make a script loop?

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

how do i make a script loop?

Post by AalaarDB »

ok whats wrong with the following?

(label) start:
@=<refobj>callscript.......
@=wait 1000 ms
gotolabel start:

or what do i do to make a script loop, and call the other script repeatedly?
Last edited by AalaarDB on Mon, 23. Feb 04, 04:50, edited 1 time in total.
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Post by AalaarDB »

bump
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Post by AalaarDB »

bump
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

you could do

Code: Select all

while [TRUE]
  do what ever you like
  don't forget to have some way of stopping this
  a Return null or something
end
or while anything really, will loop until the conditions are no longer correct.
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Post by AalaarDB »

ah thanks, i had
$s=TRUE
@=$s
thought that would function the same

Return to “X²: The Threat - Scripts and Modding”