Search found 5654 matches

by Leader
16 Jul 2018, 16:20
Forum: EE2 files, modding, maps, testing, etc.
Topic: Making a scenario using "Regicide" type of victory
Replies: 71
Views: 310

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

You didn't escale the quote character.

Code: Select all

"
It should be

Code: Select all

\"
Everywhere in text within main quotes.
by Leader
16 Jul 2018, 12:51
Forum: EE2 files, modding, maps, testing, etc.
Topic: Making a scenario using "Regicide" type of victory
Replies: 71
Views: 310

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

Depends, my World Simulator scenario still uses to crash at unexpected moments, after 2-3 hours in game. Script errors are sometimes hard to detect. For AddUnitsByAttributeToGroup - they're in zips\dbunittypeattributes.ddf For AddUnitsByTypeToGroup - they're Unit Types from .ddf files in zips\db.zip...
by Leader
16 Jul 2018, 11:59
Forum: EE2 files, modding, maps, testing, etc.
Topic: Making a scenario using "Regicide" type of victory
Replies: 71
Views: 310

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

Functions with arguments.
This is in the documentation, just read. I can't check it now (phone).
by Leader
15 Jul 2018, 22:29
Forum: EE2 files, modding, maps, testing, etc.
Topic: Making a scenario using "Regicide" type of victory
Replies: 71
Views: 310

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

Yep) 7 minutes 43 seconds So it’s like ACTION KingDeadAction2 SCRIPT WORLD if (PlayerInGame(2)){ if(!IsPlayerHumanControlled(2)){ SetAIDiplomacyEnabled(2,true); ForceSurrenderOffer(2, 1); SetAIDiplomacyEnabled(2,false); } else { ... Could be something like: if ((PlayerInGame(2)) && (!IsPlayerHumanC...
by Leader
15 Jul 2018, 22:02
Forum: EE2 files, modding, maps, testing, etc.
Topic: Making a scenario using "Regicide" type of victory
Replies: 71
Views: 310

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

P.S. Can't attach .scn file here, so share it via cloud Fixed, thanks. I'll check it again now 27 minutes 59 seconds May be no units left. Anyway, it's not a problem; the real problem is quitting "not AI player" error. Are you sure it happens after the double check? PlayerInGame() and !IsPlayerHuma...
by Leader
15 Jul 2018, 20:21
Forum: EE2 files, modding, maps, testing, etc.
Topic: Making a scenario using "Regicide" type of victory
Replies: 71
Views: 310

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

Maybe the player is not in game already? Surrendered?
by Leader
15 Jul 2018, 20:02
Forum: EE2 files, modding, maps, testing, etc.
Topic: Making a scenario using "Regicide" type of victory
Replies: 71
Views: 310

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

Seems like you really don't read the documentation.

Code: Select all

if (PlayerInGame(7)){
//Do stuff
}
In my opinion it would be simpler to create city centers for all players and delete them with a script on game start. So the normal kings would be present in game.