Making a scenario using "Regicide" type of victory

Modding, Map Editor, IES Scripting and Other Questions
User avatar
Bogdan
Posts: 149
Joined: 25 Feb 2017, 17:26
Location: Kyiv, Ukraine
Been thanked: 3 times

Re: Making a scenario using "Regicide" type of victory

Post by Bogdan »



Added after 48 minutes 59 seconds:
So it was tough, but we did it! Hope someone will enjoy
Attachments
Korean_War_1950.zip
(367.65 KiB) Downloaded 154 times

User avatar
Loewenherz
Posts: 244
Joined: 23 Sep 2017, 17:26
Has thanked: 7 times
Been thanked: 21 times

Re: Making a scenario using "Regicide" type of victory

Post by Loewenherz »

I will integrate it to the other scenarios. Thanks for your hard work.
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
User avatar
Bogdan
Posts: 149
Joined: 25 Feb 2017, 17:26
Location: Kyiv, Ukraine
Been thanked: 3 times

Re: Making a scenario using "Regicide" type of victory

Post by Bogdan »

Dr.MonaLisa wrote: 09 Jul 2018, 11:11 Any unit can be a King in your scenario, even a priest or a citizen.
Hello again) I remember you said any unit can be used as a King. But what about buildings? Can I use, say, a wall as an object that will force scenario to be lost if the wall ruined? Of course, it won't be a "Regicide", but is it possible at all? :D
User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Making a scenario using "Regicide" type of victory

Post by Dr.MonaLisa »

Bogdan wrote: 09 Feb 2019, 13:58 Hello again) I remember you said any unit can be used as a King. But what about buildings? Can I use, say, a wall as an object that will force scenario to be lost if the wall ruined? Of course, it won't be a "Regicide", but is it possible at all? :D
I think if it's possible to add a "script name" to the building/part of the Wall in the Map Editor, then it would work.
Simply usage of "if (!DoesUnitExist())" (maybe this function was called differently) would do the job.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Bogdan
Posts: 149
Joined: 25 Feb 2017, 17:26
Location: Kyiv, Ukraine
Been thanked: 3 times

Re: Making a scenario using "Regicide" type of victory

Post by Bogdan »

And so "KingDeadAction" function can be used with it?
User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Making a scenario using "Regicide" type of victory

Post by Dr.MonaLisa »

Not sure, which is the newest version of that function?
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Bogdan
Posts: 149
Joined: 25 Feb 2017, 17:26
Location: Kyiv, Ukraine
Been thanked: 3 times

Re: Making a scenario using "Regicide" type of victory

Post by Bogdan »

Thank you Mona, everything is working now)
Except LoseScenario() function. It doesn't work at all, so don't use it.
User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Making a scenario using "Regicide" type of victory

Post by Dr.MonaLisa »

LoseScenario() doesn't work because of this change: viewtopic.php?p=23985#p23985

But then would need another solution for the previous issue, where buildings stay in game, hmm....
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
User avatar
Bogdan
Posts: 149
Joined: 25 Feb 2017, 17:26
Location: Kyiv, Ukraine
Been thanked: 3 times

Re: Making a scenario using "Regicide" type of victory

Post by Bogdan »

They don't stay anymore, that is ok
User avatar
Bogdan
Posts: 149
Joined: 25 Feb 2017, 17:26
Location: Kyiv, Ukraine
Been thanked: 3 times

Re: Making a scenario using "Regicide" type of victory

Post by Bogdan »

Hi! :) I'm making a new scenario now, so I took some ideas from previous one. Can you please help me? I've used this functions for deleting player's units and buildings:

Code: Select all

AddUnitsByAttributeToGroup("KillUnitsOfPlayer1", "MobileUnits", iPLAYER1, kPlayerMode_Self, NULL);
AddUnitsByTypeToGroup("KillUnitsOfPlayer1", "BareBoneBuilding", iPLAYER1, kPlayerMode_Self, NULL);
They work fine though. However, deleting all buildings and units don't lead to the scenario end (winning or losing). Player just stays in game with 0 units and buildings... What could be the problem?
Post Reply

Return to “Questions”