More Scripting

Mar 03, 2013 16:40


After a few more glitches and flubs, I think I have Battlezone working properly again. Instant action (Inst04XMission), deathmatch multiplayer (MultDMMission) and strategy multiplayer (MultSTMission) now support Lua scripting in addition to their normal "fixed-function" behavior.

To test out the new Lua scripting feature, I added a simple script to the strategy multiplayer map I usually test with (Z Snowed In). It spawns and deploys a CCA Recycler on team 2, gives it a full stock of scrap and pilots, and starts a custom AI plan. It does remarkably well for several minutes and then suddenly stalls out when it depletes its pilot supply.

The Dark Reign-derived strategic AI doesn't know about pilots so it doesn't know how to get more when it runs out. Many maps get around this by giving the AI team nearly unlimited resources at the start. Constantly adding pilots from script also works.

The strategic AI also doesn't seem to know how to build base buildings or static defenses. The mission script would need to manage that to make the AI team a worthwhile opponent.

battlezone, programming

Previous post Next post
Up