Is it possible to change the unique unit in map editor using script?
-
- Posts: 4
- Joined: 20 Sep 2023, 14:19
- Has thanked: 1 time
Is it possible to change the unique unit in map editor using script?
Hi. I was thinking about how can I change the unique unit by using game script. If possible, how can I do it? Thanks.
- Dr.MonaLisa
- High Representative
- Posts: 8891
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 55 times
- Been thanked: 137 times
Re: Is it possible to change the unique unit in map editor using script?
Hi. Do you mean modding game files to replace an unique unit, or changing it dynamically by the IES script in custom scenarios?
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
-
- Posts: 4
- Joined: 20 Sep 2023, 14:19
- Has thanked: 1 time
Re: Is it possible to change the unique unit in map editor using script?
I mean changing it dynamically by the IES script in custom scenarios?Dr.MonaLisa wrote: ↑21 Sep 2023, 19:49 Hi. Do you mean modding game files to replace an unique unit, or changing it dynamically by the IES script in custom scenarios?
- Dr.MonaLisa
- High Representative
- Posts: 8891
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 55 times
- Been thanked: 137 times
Re: Is it possible to change the unique unit in map editor using script?
Hmm... you can check the available commands deeply:
viewtopic.php?t=5589
But I don't think it's possible. You'd at most be able to create unique units at location, with the script, bur not allow players peoduce them.
viewtopic.php?t=5589
But I don't think it's possible. You'd at most be able to create unique units at location, with the script, bur not allow players peoduce them.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
- Loewenherz
- Posts: 245
- Joined: 23 Sep 2017, 17:26
- Has thanked: 7 times
- Been thanked: 22 times
Re: Is it possible to change the unique unit in map editor using script?
A few possibilities may exist. What exactly do you have in mind?
If you want to make a certain unit, which is bound to a civilization, accessible to another civilization, this is not possible via IES scripting.
If you want to make a certain unit, which is bound to a civilization, accessible to another civilization, this is not possible via IES scripting.
List of tutorials, useful threads and utilities (look here before posting): Here
Add Pics to Map: viewtopic.php?f=54&p=25184#p25184
Loews Work: viewtopic.php?f=54&t=5160
Add Pics to Map: viewtopic.php?f=54&p=25184#p25184
Loews Work: viewtopic.php?f=54&t=5160
-
- Posts: 4
- Joined: 20 Sep 2023, 14:19
- Has thanked: 1 time
Re: Is it possible to change the unique unit in map editor using script?
Making a unique military unit available to be appeared to be generated in military buildings such as Airport, Barrack, Archery Range, and Stable.Loewenherz wrote: ↑23 Sep 2023, 23:25 A few possibilities may exist. What exactly do you have in mind?
If you want to make a certain unit, which is bound to a civilization, accessible to another civilization, this is not possible via IES scripting.
- Dr.MonaLisa
- High Representative
- Posts: 8891
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 55 times
- Been thanked: 137 times
Re: Is it possible to change the unique unit in map editor using script?
That won't be possible with IES scripting. Even adding units to building by modding the files can sometimes be complicated (and require edition of multiple files), so with IES you could at most unlock a technology that allows to produce the unit, but it would need to be defined in game files first, with the exact slot specified, and dozens of other parameters / references in different files.skyfuzzball8312 wrote: ↑24 Sep 2023, 03:00
Making a unique military unit available to be appeared to be generated in military buildings such as Airport, Barrack, Archery Range, and Stable.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Re: Is it possible to change the unique unit in map editor using script?
Thanks for replies, I have been focusing on girl and forgot about the game, now I am happily alone and shyly returning into normal life.