• Advertisement

Archived

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

Executing Scripts

This topic is 5323 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement