Strings in Event Text

  • Victoria 3 - Sign up now!

    The journey begins, sign up now and get a special in-game item when the game is released.


  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning
  • Crusader Kings II Expansion Subscription

    Subscribe to the CK II Expansion and enjoy unlimited access to 13 major expansions and more!


Fintilgin

Colonel
123 Badges
Apr 11, 2001
995
250
  • Victoria 2
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sword of the Stars
  • Teleglitch: Die More Edition
  • Heir to the Throne
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Stellaris: Necroids
  • Deus Vult
  • Hearts of Iron II: Armageddon
  • Cities in Motion 2
  • 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
  • Darkest Hour
  • Arsenal of Democracy
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
It struck me that it would be very useful and cool to be able to use strings in the event text. Especially for random events and if the game will be taking a more dynamic approach to events then EUII did.

For example, you might write an event like this:

PEASANT REVOLT IN $TARGETCITY$!

My Lord! $PROVINCECULTURE$ peasants are revolting against $OURCULTURE$ rule in the city of $PROVINCECITY$. Several buildings have been burned and mobs attacked our brave soldiers. If we don't take action quickly the revolt could quickly engulf all of $TARGETPROVINCE$!

So that way as France you might see:
PESANT REVOLT IN ESSEX!

My Lord! English peasants are revolting against French rule in the city of London. Several buildings have been burned and mobs attacked our braves soldiers. If we don't take action quickly the revolt could quickly engulf all of Essex!

But as some other nation you'd in some other province you'd see something different. This would help make events feel less 'generic'. Another thing that could help make events feel more fun and more situation specific would be to support multiple event texts for a single event. Paradox might not use it a lot, but the support would be there to for us to add more texts in later.

In this scenario, an event that gave your monarach a stat hit could have several different texts. You'd have, say, EVENT_TITLE A, EVENT_TITLE B and EVENT_TITLE C along with event text for each. Then, when the event fired it would pick one event title and it's associated text to display.

For example, event 21594 might have the following event texts/titles
EVENT_TITLE A
THE MADNESS OF $TITLE$ $OURMONARCH$

EVENT_TEXT A
$TITLE$ $OURMONARCH$ has grown increasingly disturbed of late. He has been seen pacing the corridors of his palace in $OURCAPITAL$ muttering about voices telling him to burn things and has also taken to wearing a hat made of thinly beaten tin. The Council of Lords is deeply worried and the affairs of the Kingdom are suffering.

EVENT_TITLE B
THE MADNESS OF $TITLE$ $OURMONARCH$

EVENT_TEXT A
$TITLE$ $OURMONARCH$ B has become convinced that devils and witches are watching him from afar and has had all the windows in the royal palace shuttered and draped. He is hardly sleeping and eating only sparingly for fear of poison. The Council of Lords is deeply worried and the affairs of the Kingdom are suffering.

You could also make Text_C to be the monarch contracting a cold, or falling off a horse or doing something else that negatively effects his stats without having to code lots of extra events (or make certain negative events happend too often). It would add a lot of cool flavor and uniqueness to the events you got and help you from feeling like you were getting the same generic events over and over.
 

unmerged(21937)

Your Industrial Friend
Nov 15, 2003
9.557
1
There's pretty much that in CK event engine already.
 

KaRei

Lt. General
14 Badges
Dec 27, 2005
1.588
47
  • Ancient Space
  • Crusader Kings II
  • Europa Universalis III
  • Divine Wind
  • For The Glory
  • Heir to the Throne
  • Majesty 2 Collection
  • Victoria: Revolutions
  • Rome Gold
  • Sengoku
  • Rome: Vae Victis
  • Europa Universalis III: Collection
  • Stellaris
  • Age of Wonders
I'll edid it in proposals of commands and conditions, yes?
 

unmerged(15764)

Lt. General
Mar 23, 2003
1.303
1
Visit site
definately a good idea i brought this up in the dynamic events thread it would make a dynamic event sequence much more fluffy than say "oh no mom we got revolt in london". Or say you can use your random monarch in an event for example.
 

Duuk

Reformed Badboy
23 Badges
Oct 16, 2001
6.137
1.398
  • Majesty 2
  • Europa Universalis III: Collection
  • Crusader Kings II: Holy Knight (pre-order)
  • Cities: Skylines
  • 500k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Rome Gold
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Majesty 2 Collection
  • Hearts of Iron Anthology
  • Europa Universalis III Complete
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III
  • Deus Vult
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
Byakhiam said:
There's pretty much that in CK event engine already.

Not in the event names though, which would be nice when you look in the game log and see "Technology spread happened to us." It would be better to see a "game log text" option like:

event_name "Technology Spread"
log_text "$TECH_GAINED spread to $PROVINCE."
 

Fintilgin

Colonel
123 Badges
Apr 11, 2001
995
250
  • Victoria 2
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sword of the Stars
  • Teleglitch: Die More Edition
  • Heir to the Throne
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Stellaris: Necroids
  • Deus Vult
  • Hearts of Iron II: Armageddon
  • Cities in Motion 2
  • 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
  • Darkest Hour
  • Arsenal of Democracy
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
Byakhiam said:
There's pretty much that in CK event engine already.

Is it? CK didn't seem to have any event text at all and only static titles. Event commands, sure but I was talking more about the flavor text.
 

unmerged(21937)

Your Industrial Friend
Nov 15, 2003
9.557
1
Duuk said:
Not in the event names though, which would be nice when you look in the game log and see "Technology spread happened to us." It would be better to see a "game log text" option like:

event_name "Technology Spread"
log_text "$TECH_GAINED spread to $PROVINCE."

Ah correct, not in the event engine itself. :eek:o

However, the various pointers like "Duuk duke of America" got me all mixed up.

Ignore me. :D