unit buildtrees and single-player missions

unit buildtrees and single-player missions

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
stilicho
Posts: 46
Joined: 21 Mar 2007, 02:49

unit buildtrees and single-player missions

Post by stilicho »

I'm making a single-player mission and would like to change the buildtree of the commander and construction units.

Is there any way to do this within the startscript?

I know it's possible to build a mutator and make the changes at the mod level, but in the context of a single-player campaign that would mean different mutators for different missions leading to a messy, bloated mods folder.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

no.
User avatar
stilicho
Posts: 46
Joined: 21 Mar 2007, 02:49

Post by stilicho »

OK, that's what I figured. Thanks for the prompt response trepan.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Post by jK »

in the startscript no.
but in you could do it per map level with LuaGaia or you could detect somehow the campaign level in LuaRules, so you don't need different mods/mutators.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

or you could release a SP version of the mod along with your missions in which you have changed the build menus
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

Easy. Multiple 'clone' units.

Lets say you have three missions, with three different build trees for each.
Just have 3 commander/builder/whatever units, each identical save for the buildtree!
User avatar
stilicho
Posts: 46
Joined: 21 Mar 2007, 02:49

Post by stilicho »

I hadn't thought of cloning units within the mod. But since it seems to be the path of least resistance, that's what I'm going to use, atleast for now.

One of the reasons I was considering using mutators was that with them I could have NTAI load mission specific configs. Then I would have a certain amount of control over enemy behaviour without having to use lots of scripted events.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

mutators would also allow the new lua gadget methods of building missions as well as gaia scripts.

Lua gadgets can modify build menus.
Post Reply

Return to “Lua Scripts”