Hey guys, I really am happy with the toolset and I'm excited to get started on my own mod but I'm a little disappointed in the lack of documentation for various little things. It'd be nice if there was a wiki that we could all contribute toward but I guess that's a fantasy.
I've got my test tuning pack and wincondition working but a few things I'm wondering about first, how do I edit start units and buildings?
My objective is to make a mod that will keep gameplay as-is for the computer but disable/change things for the player. Currently my mod is the basic win/scar file except I changed MaxPopulation can anyone help me out further?
Winconditions assistance for Lua modder
26 Dec 2014, 11:43 AM
#1

Posts: 1
29 Dec 2014, 00:48 AM
#2
Posts: 139
Win condition files and tuning packs both allow substituting starting buildings/units for factions (the latter with an ugly hack), but I don't know of a way for doing it only for human players.
However, your win condition's script can do it by iterating over the players to detect which are humans, and for those it can use conditionals to detect which factions they are, then just delete the default starting unit for that faction and spawn the new one(s) you want them to have.
Buildings may be more challenging. For base bunkers you can probably use the script to collect all the entities of the relevant type, iterate over that list, and for each one find the location and orientation, destroy it, and spawn what you want using the same location and orientation.
But I don't think that would work for the HQ building.
However, your win condition's script can do it by iterating over the players to detect which are humans, and for those it can use conditionals to detect which factions they are, then just delete the default starting unit for that faction and spawn the new one(s) you want them to have.
Buildings may be more challenging. For base bunkers you can probably use the script to collect all the entities of the relevant type, iterate over that list, and for each one find the location and orientation, destroy it, and spawn what you want using the same location and orientation.
But I don't think that would work for the HQ building.
PAGES (1)

1 user is browsing this thread:
1 guest
Livestreams
|
|
|
12 | ||
|
|
|
27 | ||
|
|
|
6 | ||
|
|
|
5 | ||
|
|
|
5 | ||
|
|
|
2 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.795136.854+1
- 2.46468.872-1
- 3.871298.745+2
- 4.14465.689-1
- 5.401212.654+3
- 6.21156.790-2
- 7.301128.702+3
- 8.354186.656+3
- 9.501325.607+4
- 10.327118.735-1
Replay highlight
VS
-
cblanco ★ -
보드카 중대
-
VonManteuffel -
Heartless Jäger
Einhoven Country
Honor it
15
Download
2714
Board Info
1011 users are online:
1011 guests
0 post in the last 24h
1 post in the last week
18 posts in the last month
1 post in the last week
18 posts in the last month
Registered members: 62219
Welcome our newest member, kuwinbaby
Most online: 4501 users on 26 Oct 2025, 01:00 AM
Welcome our newest member, kuwinbaby
Most online: 4501 users on 26 Oct 2025, 01:00 AM