• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

kelumden

Second Lieutenant
11 Badges
Jan 4, 2004
104
0
  • Arsenal of Democracy
  • Darkest Hour
  • Europa Universalis III Complete
  • For The Glory
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Rome Gold
  • Sword of the Stars
  • Victoria 2
  • 500k Club
  • Pride of Nations
There is a possibility for a scenario designer to add scenario-specific options and for players to set such options.

====================

I came accross the following instructions in scenario files (.eug) of the EEP:

Code:
option = {
  name = "[COLOR=LemonChiffon]<text>[/COLOR]"
  tag = [COLOR=LemonChiffon]<varname>[/COLOR]
  status = yes | no
}

This instruction is defined in the header block. Once you load a scenario, you will be able to interact with it throu the menu "Options". For each option defined, <text> is displayed, followed by the status of the instruction (On for yes, Off for no). You can toggle status at will, so interacting with the scenario in crude boolean way.

A variable is created with name <varname> and can be used to choose files, etc. with the following instruction :

Code:
¤IF [COLOR=LemonChiffon]<varname>[/COLOR]
  ... choice 1
¤ELSE
  ... choice 2
¤ENDIF

The created variable <varname> is NOT a global flag. So to take advantage of it as a flag (and only a local one, bound to the country triggering the event), it can be used to alter the way the country file is processed (or any other file, as far has I understand it, including event files !)

It should be nice to know if there is a way to allow multiple choice in an option, a bit like the option "Game Speed". Likewise, is there any other "hidden" instructions like option = { } or IT...THEN..ELSE ?

====================

Example:

in .eug file:

Code:
header = {
  ...
  option = {
    name = "Historical Portugal Expansion in XVth century"
    tag = por_historical
    status = yes
  }
}
Once the scenario is selected, the player will find, in the menu "Options", the following choice:

Historical Portugal Expansion in XVth century ON
He can toggle this option at will.

in 1419_por.inc

Code:
¤IF por_historical
  ai = "portugal.ai"
¤ELSE
  ai = "portugal2.ai"
¤ENDIF

Depending on the setting choosen, one or the other ai file is loaded. The file portugal2.ai could be set so that Portugal is more interested in exploring the New World then going South to India.

EDIT ========================================

I tried to define 200 option statements without trouble: they are all displayed and selectable.
 
Last edited:

Kaigon

Cake or Death?
48 Badges
Mar 15, 2002
4.216
0
kaigon.ripperdoc.net
  • Crusader Kings II: Horse Lords
  • Sengoku
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Europa Universalis: Rome
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Crusader Kings Complete
  • Shadowrun Returns
  • Shadowrun: Hong Kong
  • Imperator: Rome Sign Up
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis III: Chronicles
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Cities in Motion
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
Johan revealed this to us some time ago (it war earlier than 1.07 (1.06?), but it wasn't fully fixed until 1.07) and personally I find it very useful, especially when I made the IES.
The only "problem" that I've heard from is that there's a limit on the number of options: The scroll-bar won't go further, even though there are options defined.
 

kelumden

Second Lieutenant
11 Badges
Jan 4, 2004
104
0
  • Arsenal of Democracy
  • Darkest Hour
  • Europa Universalis III Complete
  • For The Glory
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Rome Gold
  • Sword of the Stars
  • Victoria 2
  • 500k Club
  • Pride of Nations
Kaigon said:
Johan revealed this to us some time ago (it war earlier than 1.07 (1.06?), but it wasn't fully fixed until 1.07) and personally I find it very useful, especially when I made the IES.
The only "problem" that I've heard from is that there's a limit on the number of options: The scroll-bar won't go further, even though there are options defined.

I am glad to hear it has been revealed before, but I didn't find a clue about it on the forums so ...
 

unmerged(24923)

Private
Jan 21, 2004
16
0
New Countries

:confused: Is it possible to create countries/vassals/alliances in the same as the editing of the events?