Setting Map Editor Objectives
Re: Setting Map Editor Objectives
Sure here they are
- Attachments
-
- C USA Script.ies
- (3.85 KiB) Downloaded 55 times
-
- China USA.scn
- (2.48 MiB) Downloaded 55 times
- Dr.MonaLisa
- High Representative
- Posts: 8708
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 49 times
- Been thanked: 108 times
Re: Setting Map Editor Objectives
Ok, I checked and I think it needs to be:
instead of:
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!
Code: Select all
targetterritory1
Code: Select all
targetTerritories
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
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Re: Setting Map Editor Objectives
I'll try that out. And thank you, but I wish I had room for the South China Sea
Re: Setting Map Editor Objectives
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.
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.
- Dr.MonaLisa
- High Representative
- Posts: 8708
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 49 times
- Been thanked: 108 times
Re: Setting Map Editor Objectives
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.
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
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Re: Setting Map Editor Objectives
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?
Also does anyone know if there's a way to activate fealty mode for scenarios?
- Loewenherz
- Posts: 244
- Joined: 23 Sep 2017, 17:26
- Has thanked: 7 times
- Been thanked: 21 times
Re: Setting Map Editor Objectives
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
Add Pics to Map: viewtopic.php?f=54&p=25184#p25184
Loews Work: viewtopic.php?f=54&t=5160
Re: Setting Map Editor Objectives
I'm also not sure how to get the createunit commands to work, if anyone knows about them.
- Dr.MonaLisa
- High Representative
- Posts: 8708
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 49 times
- Been thanked: 108 times
Re: Setting Map Editor Objectives
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
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Re: Setting Map Editor Objectives
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.