Archived

This topic is now archived and is closed to further replies.

JoHnOnIzEr

Executing Scripts

Recommended Posts

For the execution of scripts in my main loop, such as AI scripts, how can i get them to work over several frames or whatever, to constantly do stuff till it is stopped by something else. Im gonna use windows scripting host with VBScript as my language and im just gonna add more stuff to it EDIT: Or is windowsscripthost too slow for a game thats gonna go multiplayer [edited by - JoHnOnIzEr on July 26, 2003 1:06:57 AM]

Share this post


Link to post
Share on other sites
LUA has a system that allows a script execute over multiple frames. If the scripting language you are using doesn''t have that ability, then you must implement the ability for a script to pause, save its state, and wait to be resumed.

Share this post


Link to post
Share on other sites
I'm usin VB, so i gotta do it on my own?

EDIT: How about like making two loops run at once the game loop and another one that loops through the scripts?

[edited by - JoHnOnIzEr on July 26, 2003 7:17:18 PM]

Share this post


Link to post
Share on other sites