• 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.

General Mosh

Captain
52 Badges
Jul 31, 2011
401
6
  • Crusader Kings II
  • Hearts of Iron IV Sign-up
  • Stellaris - Path to Destruction bundle
  • Stellaris
  • Stellaris: Synthetic Dawn
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars
  • Rome Gold
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Cities in Motion
  • Heir to the Throne
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Prison Architect: Psych Ward
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Third Rome
  • Cities: Skylines - Green Cities
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Mount & Blade: Warband
  • Europa Universalis IV: Pre-order
  • Cities: Skylines
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
When I'm scripting decisions, well, what are the major differences between that and event scripting? (I CAN script events)
I could probably learn this by going into the DH files and comparing decisions, but i'd rather ask you guys :p
 
# Decisions concept:

new modifier in misc.txt (“mod” section): #Enable decisions for players. 0 - Disabled, 1 – Enabled

Basics
1. Decisions are modified events.
2. They differ from regular event only by the presence of a new section - decision
3. Decisions are treated as regular events by the AI.
4. Players have the power to choose when a decision could be applied.
5. Decisions are hidden until all triggers in decision = { } section is true.
6. Decision are available for selection when all triggers in decision_trigger = { } section in the event are true. If decision_trigger = { } section doesn't exist or is empty, it will use trigger = { } instead.
7. Once selected the decisions fire as regular event via standard event window with all the usual information and actions on it.
8. Decisions are logged in event history as regular events.

New entry in the event :

decision_desc = "....", optional decision specific text (used on tool-tips instead of event description).
decision_picture = "picture_name.bmp". Optional (there will be a generic picture loaded by default - gfx\event_pics\decisions_empty.bmp), placed on the decision plate
decision_trigger = { }. It is optional and will be used instead of trigger = { }. When it is true the decisions will be active for selection. When not present trigger = {} section will be used for that.

Limitations
1. Decisions should not use random elements in any triggers so tool-tips to be correct. EDIT No problem to use random trigger in AI only actions or commands
2. For better formatting on tool-tips NOT = { trigger1 ... triggerX } should be used for individual triggers only NOT = { trigger1 } ... NOT = { triggerX } NEW
 
Thank you, and yes there is an explanation in the guide to darkest hour. :D
Thank you, now I've got to get to work! ;)