Page 1 of 1
Campaign Series Lua Scripting - Defending
Posted: Tue Apr 02, 2024 4:46 pm
by Jason Petho
This is a tutorial that goes over how to utilize CS Lua within the campaign series to make the AI perform the way you would like it to. In this tutorial, I select one infantry company and give you three levels of how to defend - with a bonus offering at the end! Even though this is done in Middle East, the same principles apply to Vietnam.
Please provide some feed back if you found this use or how I can make it better. If it is received well, it will be the first in a new series of scripting tutorials.
https://youtu.be/YutFJRa0rTk
Re: Campaign Series Lua Scripting - Defending
Posted: Tue Apr 02, 2024 8:01 pm
by RedBunny
Here's an idea that at least I find interesting: Matrix sponsers a "script tournament". Participants script both sides of a selected scenario and a referee runs two AI games using the attacker script and defender script for each participant on both games. Total score between the two scenarios determines winner. Not sure this is possible with the game engine.
A set of ground rules would have to limit which scripting functions can be permitted (i.e. no eliminating all opposing units, no teleporting units around, etc.) and a referee would have to review all scripts for volations.
All this would be a time consuming process for all, so I don't see this happening but imagine future players having a number of scripting examples for a scenario to study and build on. A guy can dream right?
Re: Campaign Series Lua Scripting - Defending
Posted: Tue Apr 02, 2024 8:02 pm
by Jason Petho
It's a good idea!
It would be nice to see some user created content.
That's why I'm working on these videos, to give some ideas.