I'm new in the Spring community and started to make my own scripts to help my relative poor skill in RTS playing.
I've already created a template "mission" for training and testing purpose, with a startscript. But I have some questions to finalize my project:
- How to assign a color to each team when the mission starts? Currently, team 0 is blue and team 1 is red; I would like to change that.
- Is it possible to add text commands for use in game? I found this in a lua example file:
But it doesn't seem to work, I suspect this method is obsolete..
Code: Select all
function MissionTest:__init() super('LUA ordertroops') self.state = 0 self.commands = {} self.commands[".help"] = self.Help end function MissionTest:Help(param) print("Request troops to attack you by saying for example '.send 5 arm_stumpy' or '.send 4 core_instigators'") end
- Spring crashes when I include the code to insert an AI showed in the wiki tutorial (I point the correct AI dll btw). Is this method still valid? or am I just doing wrong?
