Setting Map Editor Objectives

Modding, Map Editor, IES Scripting and Other Questions
Seven243
Posts: 17
Joined: 02 Nov 2022, 21:41
Has thanked: 2 times

Re: Setting Map Editor Objectives

Post by Seven243 »

Sure here they are
Attachments
C USA Script.ies
(3.85 KiB) Downloaded 50 times
China USA.scn
(2.48 MiB) Downloaded 50 times

User avatar
Dr.MonaLisa
High Representative
Posts: 8698
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Setting Map Editor Objectives

Post by Dr.MonaLisa »

Ok, I checked and I think it needs to be:

Code: Select all

targetterritory1
instead of:

Code: Select all

targetTerritories
Screenshot 2022-11-17 223041.png
Screenshot 2022-11-17 223041.png (10.9 KiB) Viewed 931 times

it seems to expect a decimal character after "targetterritory" in order to allow multiple of them.

Loew, could you please check if the scripting commands in your topic are clear about it?

By the way, very good-looking and promising scenario!
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Seven243
Posts: 17
Joined: 02 Nov 2022, 21:41
Has thanked: 2 times

Re: Setting Map Editor Objectives

Post by Seven243 »

I'll try that out. And thank you, but I wish I had room for the South China Sea
Seven243
Posts: 17
Joined: 02 Nov 2022, 21:41
Has thanked: 2 times

Re: Setting Map Editor Objectives

Post by Seven243 »

Okay I'm still having some problems. It's setting a lose condition as a primary objective, the first objective of defending Taiwan doesn't finish or have a timer and the next objective stays hidden. I'd like to find how to use the "if, then" etc. commands or find instructions for that.

For another scenario, I need a way to make an AI player only take control of several specific territories and 2. make an AI player only expand to one or two territories max.
And thanks for all the help so far.
User avatar
Dr.MonaLisa
High Representative
Posts: 8698
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Setting Map Editor Objectives

Post by Dr.MonaLisa »

There are a lot of "if", "else" and such in the example scripts which I lonked earlier. Especially in my scenarios: "pirates", "planes".

For the second question, I don't know as I never coded AI behaviours with my .ies scripts. Hopefully someone else will know.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Seven243
Posts: 17
Joined: 02 Nov 2022, 21:41
Has thanked: 2 times

Re: Setting Map Editor Objectives

Post by Seven243 »

I did get GiveCaptureTerritoryPreference and GiveAttack/ DefendBasePreference to work, but I'm still not really making any progress on getting the objectives to work. Could setting the victory condition to Capitols make this more simple? Capitols would work for both of the objectives I've been trying to set.
Also does anyone know if there's a way to activate fealty mode for scenarios?
User avatar
Loewenherz
Posts: 244
Joined: 23 Sep 2017, 17:26
Has thanked: 7 times
Been thanked: 21 times

Re: Setting Map Editor Objectives

Post by Loewenherz »

I think I know scripting quite well. I'll send you a few examples at the weekend and explain to you exactly how it works.
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
Seven243
Posts: 17
Joined: 02 Nov 2022, 21:41
Has thanked: 2 times

Re: Setting Map Editor Objectives

Post by Seven243 »

I'm also not sure how to get the createunit commands to work, if anyone knows about them.
User avatar
Dr.MonaLisa
High Representative
Posts: 8698
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Setting Map Editor Objectives

Post by Dr.MonaLisa »

Isn't this function in the script examples that I linked earlier? I'm pretty sure in Pirates scenario units (pirate ships) were constantly being created using the .ies script.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Seven243
Posts: 17
Joined: 02 Nov 2022, 21:41
Has thanked: 2 times

Re: Setting Map Editor Objectives

Post by Seven243 »

This isn't working for me. if, then, SpawnUnitAtLocation and most other things are unrecognized whether I type them or copy and paste them. Or it's always expecting something different than what I have in the script. And it seems to require the Definitions section to be empty for some reason. Thanks for helping but I'm not sure I'm smart enough to do this.
Post Reply

Return to “Questions”